{"name":"hexo-generator-index","version":"4.0.0","keywords":["hexo","generator","index","home"],"author":{"url":"https://zespia.tw","name":"Tommy Chen","email":"tommy351@gmail.com"},"license":"MIT","_id":"hexo-generator-index@4.0.0","maintainers":[{"name":"ertrzyiks","email":"mateusz.derks@gmail.com"},{"name":"abnerchou","email":"hi@abnerchou.me"},{"name":"tommy351","email":"tommy351@gmail.com"},{"name":"hexobot","email":"hexojs@gmail.com"},{"name":"jlhwung","email":"jlhwung@gmail.com"},{"name":"tomap","email":"piartt@gmail.com"},{"name":"curben","email":"bushedge@protonmail.com"},{"name":"yoshinorin","email":"yoshinorin.net@outlook.com"}],"homepage":"https://hexo.io/","bugs":{"url":"https://github.com/hexojs/hexo-generator-index/issues"},"dist":{"shasum":"2f20cf9d231db30edbccd5be32c92c8aeb5d6d63","tarball":"http://registry-npm.ywwl.com/hexo-generator-index/download/hexo-generator-index-4.0.0.tgz","fileCount":5,"integrity":"sha512-KeM7mOCKWINGFAk1E+CkjMMgqFIv8oaRbGxR7ipkQAp44o4aopkVftma4sdIplOq9WQEWfVYDUK5gEv9J3nzUg==","signatures":[{"sig":"MEUCIDJrx09FryAK0s3z1y/hrTxfxoqisqfCEzdCJ4RXAX49AiEAso++/+U3YIzdMGWdQrl8Eaw2gMHz9DC6EkFcA8ye2AE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5004,"size":2494,"noattachment":false,"key":"/hexo-generator-index/-/hexo-generator-index-4.0.0.tgz"},"main":"index","engines":{"node":">=18"},"gitHead":"83d121f797a7bcca2fd141548e8b3cd04ea5216a","scripts":{"test":"mocha test/index.js","eslint":"eslint .","test-cov":"c8 --reporter=lcovonly npm run test"},"_npmUser":{"name":"yoshinorin","email":"yoshinorin.net@outlook.com"},"repository":{"url":"git+https://github.com/hexojs/hexo-generator-index.git","type":"git"},"_npmVersion":"10.2.4","description":"Index generator for Hexo.","directories":{"lib":"./lib"},"_nodeVersion":"22.3.0","dependencies":{"hexo-pagination":"3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.2","chai":"^4.3.6","hexo":"^7.0.0","mocha":"^10.0.0","eslint":"^8.25.0","eslint-config-hexo":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hexo-generator-index_4.0.0_1720529758347_0.204665699816303","host":"s3://npm-registry-packages"},"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":1720529758484,"_cnpm_publish_time":1720529758484,"dist-tags":{"latest":"4.0.0"}}