{"name":"hexo-generator-index","version":"3.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@3.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":"i@jhuang.me"},{"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":"4c9233731e027a6af6491886a4aafe08ffdaffe0","tarball":"http://registry-npm.ywwl.com/hexo-generator-index/download/hexo-generator-index-3.0.0.tgz","fileCount":5,"integrity":"sha512-83AuNN4cWdLVi//3ugR8E3kR6rrOwhXZt+hOCm1IjtIGj353/GlrtpMHpqZHU5kqipzj4miy9dweVdukXglVWw==","signatures":[{"sig":"MEQCIFdZtoZ6avi/j92gKuO0KxXzUgPLZxu1YDETrdVwoa9iAiAqPxtA8+tqMT+7QfQ0M9XcnC+B+EV4dDGJ6SyWxtuyKQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4783,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTB+WACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrmxA/9EMCFsw036wF15meP82faQkpYQF0cUgVx70szC/Nf7oEdEdIN\r\n/gL3E1BRH0Bra3Grk/1vgzM4KNaaQeQQQaStRBgayxU+pnEss24knGBF98D/\r\nV2F7NoOeU6yVq7JX/5DOexJ06Q7YRQgDNlRjMcEcWSPhbgnv+YcG/u+b3lpZ\r\n4/dGU6RLw9OzxzZ37pkKh7Dn9z3PS3MT92xcfvGpuDDpZyBAmsBOlFfllfih\r\nBDaeSzEq/dyzbnZrEouWo278cDdUO1CConTzDgOXcWXNc5tckmGPbFeXxwDj\r\noDH4lFfJkFXUlorjdGsmzPLJ/QHNTwZ6uHRclnxKywaLeDTSSO/X79R/NEuz\r\noqs9ZEqQxW0D6Ggxof+EX/dTXhSoaDzmCdu/V3pL8lh6QTwYTaaL9jfLdEzu\r\n+RhTebSaNIE54Gtw07E5dfv1WtOiFVuLrK3FfWcOkjDWUCOSV5f2wTM5+axp\r\nqW19wtRQSVSPGfa+HJGVm1vRyzIyPOs18orREdlF0gx2n2sOUVBI1X1KGe7i\r\n1y9ph39gIoEOPOLPPsoMFNX8OYmCVnYRKmTuKpf0U2+E07F3QI8TD59zzKGW\r\nG+tz2CQ8h0vJoUmELC4tXckcOkV7sdiIFW4QIPlg/fiS215if6ZZ4dTBmDd9\r\nBwviaQW65KpJhRzxqzdGqr4832+HjyoyUM8=\r\n=KiCd\r\n-----END PGP SIGNATURE-----\r\n","size":2431,"noattachment":false,"key":"/hexo-generator-index/-/hexo-generator-index-3.0.0.tgz"},"main":"index","engines":{"node":">=14"},"gitHead":"7c42378d6880faa268fb75a53dfc296ccb1e4464","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":"8.4.0","description":"Index generator for Hexo.","directories":{"lib":"./lib"},"_nodeVersion":"16.16.0","dependencies":{"hexo-pagination":"3.0.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.12.0","chai":"^4.3.6","hexo":"^6.3.0","mocha":"^10.0.0","eslint":"^8.25.0","eslint-config-hexo":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hexo-generator-index_3.0.0_1665933205940_0.5171993617961006","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":1665933206134,"_cnpm_publish_time":1665933206134,"dist-tags":{"latest":"4.0.0"}}