{"name":"hexo-generator-index","version":"0.2.1","keywords":["hexo","generator","index","home"],"author":{"url":"http://zespia.tw","name":"Tommy Chen","email":"tommy351@gmail.com"},"license":"MIT","_id":"hexo-generator-index@0.2.1","maintainers":[{"name":"abnerchou","email":"zhcjtht@hotmail.com"},{"name":"tommy351","email":"tommy351@gmail.com"}],"homepage":"http://hexo.io/","bugs":{"url":"https://github.com/hexojs/hexo-generator-index/issues"},"dist":{"shasum":"9042229fcac79aaf700575da19332bf3f7ee5c5d","tarball":"http://registry-npm.ywwl.com/hexo-generator-index/download/hexo-generator-index-0.2.1.tgz","integrity":"sha512-QTt0YNgYAwQu8YQ37fruSaR2qrGHmFU0ZYbvkeaZP0RmzZSbdAWg1pw0kx6J4ibOzRHIBPk/qOWhptUC110PSQ==","signatures":[{"sig":"MEQCIFYzyQGm0CJFNPRme8Ac4E+GKxV1mixa2LK4MbPJdxFFAiAhBka5gmrRi9Jp/x/m3SrcENUHYK0/CGw9YYSS2kAekg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2192,"noattachment":false,"key":"/hexo-generator-index/-/hexo-generator-index-0.2.1.tgz"},"main":"index","_from":".","_shasum":"9042229fcac79aaf700575da19332bf3f7ee5c5d","engines":{"node":">= 0.10.0"},"gitHead":"0c27fcec72ad322fbed577cca695350958c2adcd","scripts":{"jscs":"jscs .","test":"mocha test/index.js","eslint":"eslint .","test-cov":"istanbul cover --print both _mocha -- test/index.js"},"_npmUser":{"name":"abnerchou","email":"zhcjtht@hotmail.com"},"repository":{"url":"git+https://github.com/hexojs/hexo-generator-index.git","type":"git"},"_npmVersion":"4.0.2","description":"Index generator for Hexo.","directories":{"lib":"./lib"},"_nodeVersion":"6.9.1","dependencies":{"object-assign":"^4.0.1","hexo-pagination":"0.0.2"},"devDependencies":{"chai":"^3.4.0","hexo":"^3.0.0","jscs":"^2.5.0","mocha":"^2.0.1","eslint":"^1.8.0","istanbul":"^0.4.0","jscs-preset-hexo":"^1.0.1","eslint-config-hexo":"^1.0.2"},"_npmOperationalInternal":{"tmp":"tmp/hexo-generator-index-0.2.1.tgz_1490991680848_0.6722402973100543","host":"packages-18-east.internal.npmjs.com"},"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":1490991681443,"_cnpm_publish_time":1490991681443,"dist-tags":{"latest":"4.0.0"}}