{"name":"hexo-generator-index","version":"0.0.2","keywords":["hexo","generator","index","home"],"author":{"url":"http://zespia.tw","name":"Tommy Chen","email":"tommy351@gmail.com"},"license":"MIT","_id":"hexo-generator-index@0.0.2","maintainers":[{"name":"tommy351","email":"tommy351@gmail.com"}],"homepage":"http://hexo.io/","bugs":{"url":"https://github.com/hexojs/hexo-generator-index/issues"},"dist":{"shasum":"0e330950139e8893a8c339e5bcb173fc4788f15a","tarball":"http://registry-npm.ywwl.com/hexo-generator-index/download/hexo-generator-index-0.0.2.tgz","integrity":"sha512-w5n6eX1kPGSWsmMX38XwJ2qr09X+e6woJDDSNrn1s/NML405VI7z5fnGeM0YSQfBVx1t5CAfaNHuLaUSnDVX1Q==","signatures":[{"sig":"MEUCIQCS1DzWTyXXtoz85+N9ikDVm/JAiAr/lX6pzp/R1XLGNQIgFNfDElc8EBASdezh2YDDGewLeEHT8+cjfACJOLLAEFU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":1864,"noattachment":false,"key":"/hexo-generator-index/-/hexo-generator-index-0.0.2.tgz"},"main":"index","_from":".","_shasum":"0e330950139e8893a8c339e5bcb173fc4788f15a","engines":{"node":">= 0.10.0"},"gitHead":"d16a70df116187b3f97da88a49137eab3ea8de41","scripts":{"test":"gulp test"},"_npmUser":{"name":"tommy351","email":"tommy351@gmail.com"},"repository":{"url":"https://github.com/hexojs/hexo-generator-index","type":"git"},"_npmVersion":"2.1.8","description":"Index generator for Hexo.","directories":{"lib":"./lib"},"_nodeVersion":"0.10.33","dependencies":{"utils-merge":"^1.0.0","hexo-pagination":"0.0.2"},"devDependencies":{"chai":"^1.9.1","gulp":"^3.8.9","hexo":"^3.0.0-beta.1","mocha":"^2.0.1","rimraf":"^2.2.8","coveralls":"^2.11.2","gulp-mocha":"^2.0.0","gulp-jshint":"^1.8.6","gulp-istanbul":"^0.5.0","jshint-stylish":"^1.0.0","gulp-load-plugins":"^0.8.0"},"readme":"# hexo-generator-index\n\n[![Build Status](https://github.com/hexojs/hexo-generator-index/workflows/Tester/badge.svg?branch=master)](https://github.com/hexojs/hexo-generator-index/actions?query=workflow%3ATester)\n[![NPM version](https://badge.fury.io/js/hexo-generator-index.svg)](https://www.npmjs.com/package/hexo-generator-index)\n[![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-generator-index.svg)](https://coveralls.io/r/hexojs/hexo-generator-index?branch=master)\n\nIndex generator for [Hexo].\n\nIt generates an archive of posts on your homepage, according to the `index` or `archive` layout of your theme.\n\n## Installation\n\n```bash\nnpm install hexo-generator-index --save\n```\n\n## Options\n\nAdd or modify the following section to your root `_config.yml` file.\n\n```yaml\nindex_generator:\n  path: \"\"\n  per_page: 10\n  order_by: -date\n  pagination_dir: page\n  layout: [\"index\", \"archive\"]\n```\n\n- **path**: Root path for your blog's index page.\n  - default: `\"\"`\n- **per_page**: Posts displayed per page.\n  - default: [`config.per_page`](https://hexo.io/docs/configuration.html#Pagination) as specified in the official Hexo docs (if present), otherwise `10`\n  - `0` disables pagination.\n- **order_by**: Posts order.\n  - default: `-date` (date descending)\n- **pagination_dir**: URL format.\n  - default: `page`\n  - e.g. set `awesome-page` makes the URL ends with `awesome-page/<page number>` for second page and beyond.\n- **layout**: custom layout.\n  - defalut: `[\"index\", \"archive\"]`\n\n## Usage\n\nThe `sticky` parameter in the post [Front-matter](https://hexo.io/docs/front-matter) will be used to pin the post to the top of the index page. Higher `sticky` means that it will be ranked first.\n\n```yml\n---\ntitle: Hello World\ndate: 2013/7/13 20:46:25\nsticky: 100\n---\n```\n\n## Note\n\nIf your theme define a non-archive `index` layout (e.g. About Me page), this plugin would follow that layout instead and not generate an archive. In that case, use [hexo-generator-archive](https://github.com/hexojs/hexo-generator-archive) to generate an archive according to the `archive` layout.\n\n## License\n\nMIT\n\n[Hexo]: https://hexo.io/\n","publish_time":1420610675665,"_cnpm_publish_time":1420610675665,"dist-tags":{"latest":"4.0.0"}}