Refactored creating a package sidebar.

https://github.com/DiscoverMeteor/DiscoverMeteor_En/commit/e7f66b0d1cc263ba4d765e02c2230a7a3dce9386#diff-d41d8cd98f00b204e9800998ecf8427e