{"id":13536608,"url":"https://github.com/next-theme/hexo-generator-indexed","last_synced_at":"2025-04-12T21:32:48.891Z","repository":{"id":40307580,"uuid":"192656150","full_name":"next-theme/hexo-generator-indexed","owner":"next-theme","description":"Index generator plugin for Hexo.","archived":false,"fork":false,"pushed_at":"2024-10-29T23:22:53.000Z","size":102,"stargazers_count":3,"open_issues_count":13,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-30T01:51:25.226Z","etag":null,"topics":["hexo","hexo-plugin","hide-articles"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/hexo-generator-indexed","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/next-theme.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-19T04:05:54.000Z","updated_at":"2022-04-09T17:12:41.000Z","dependencies_parsed_at":"2024-01-05T15:28:28.757Z","dependency_job_id":"f5c38d45-5ef0-4932-9fba-f1a305d246ca","html_url":"https://github.com/next-theme/hexo-generator-indexed","commit_stats":{"total_commits":118,"total_committers":17,"mean_commits":"6.9411764705882355","dds":0.6949152542372881,"last_synced_commit":"7b9be7423ce11d46bf108a1ed7af10c2bed275c2"},"previous_names":["stevenjoezhang/hexo-generator-indexed"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/next-theme%2Fhexo-generator-indexed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/next-theme%2Fhexo-generator-indexed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/next-theme%2Fhexo-generator-indexed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/next-theme%2Fhexo-generator-indexed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/next-theme","download_url":"https://codeload.github.com/next-theme/hexo-generator-indexed/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525139,"owners_count":21118620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hexo","hexo-plugin","hide-articles"],"created_at":"2024-08-01T09:00:45.384Z","updated_at":"2025-04-12T21:32:48.536Z","avatar_url":"https://github.com/next-theme.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Hexo Plugins"],"readme":"# hexo-generator-indexed\n\n[![npm-image]][npm-url]\n[![lic-image]](LICENSE)\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![size-image]\n[![dm-image]][npm-url]\n[![dt-image]][npm-url]\n\n``` bash\n$ npm install hexo-generator-indexed\n```\n\n## Options\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```\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 descending\n- **pagination_dir**: URL format.\n  - default: 'page'\n  - `awesome-page` makes the URL ends with 'awesome-page/\u003cpage number\u003e' for second page and beyond.\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## Feature \u0026 Usage\n\n### 置顶文章 Pinned article\n\n**这一功能已被加入 `hexo-generator-index`。**  \n**This feature is now part of `hexo-generator-index`.**\n\n在文章的 [Front-matter](https://hexo.io/docs/front-matter) 中增加一个 `sticky` 参数用来置顶，其值应为大于0的整数，表示置顶的优先级（未指定则默认为 0）。数字越大，文章越靠前。  \nAdd a `sticky` parameter to the the post's [Front-matter](https://hexo.io/docs/front-matter) to make the post pinned at the top of home page.\n\n```markdown\n---\ntitle: example\nsticky: 100\n---\n```\n\n采用 `sticky` 关键词是因为这个在 [NexT 主题](https://github.com/next-theme/hexo-theme-next)中已经定义了置顶样式，因此可以直接拿来使用。\n\n### 隐藏文章 Hide article\n\n在文章的 Front-matter 中增加一个 `hide` 参数用来隐藏。  \nAdd a `hide` parameter to the the post's Front-matter to hide the post from home page.\n\n```markdown\n---\ntitle: example\nhide: true\n---\n```\n\n### 隐藏特定分类中的文章 Hide articles in specified categories\n\n在 Hexo 的 `_config.yml` 中可以通过 `hide_categories` 选项设置隐藏某个分类下的文章，例如：  \nYou can hide articles in specified categories by setting `hide_categories` in hexo `_config.yml`, e.g.\n\n```yml\nhide_categories:\n  - category1\n  - category2\n```\n\n## License\n\nMIT\n\n[Hexo]: http://hexo.io/\n\n[npm-image]: https://img.shields.io/npm/v/hexo-generator-indexed?style=flat-square\n[lic-image]: https://img.shields.io/npm/l/hexo-generator-indexed?style=flat-square\n\n[size-image]: https://img.shields.io/github/languages/code-size/next-theme/hexo-generator-indexed?style=flat-square\n[dm-image]: https://img.shields.io/npm/dm/hexo-generator-indexed?style=flat-square\n[dt-image]: https://img.shields.io/npm/dt/hexo-generator-indexed?style=flat-square\n\n[npm-url]: https://www.npmjs.com/package/hexo-generator-indexed\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnext-theme%2Fhexo-generator-indexed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnext-theme%2Fhexo-generator-indexed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnext-theme%2Fhexo-generator-indexed/lists"}