{"id":13609205,"url":"https://github.com/hexojs/hexo-generator-feed","last_synced_at":"2025-07-28T17:33:34.616Z","repository":{"id":13140745,"uuid":"15823063","full_name":"hexojs/hexo-generator-feed","owner":"hexojs","description":"Feed generator for Hexo.","archived":false,"fork":false,"pushed_at":"2024-07-01T10:42:34.000Z","size":254,"stargazers_count":575,"open_issues_count":12,"forks_count":105,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-10-29T21:25:04.371Z","etag":null,"topics":["atom","feed","feed-generator","hexo","hexo-plugin","javascript","rss"],"latest_commit_sha":null,"homepage":"http://hexo.io","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/hexojs.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}},"created_at":"2014-01-11T13:38:12.000Z","updated_at":"2024-10-19T06:49:55.000Z","dependencies_parsed_at":"2024-01-19T10:11:50.179Z","dependency_job_id":"a1035087-359c-4a24-ba19-ca8805632db6","html_url":"https://github.com/hexojs/hexo-generator-feed","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-generator-feed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-generator-feed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-generator-feed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hexojs%2Fhexo-generator-feed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hexojs","download_url":"https://codeload.github.com/hexojs/hexo-generator-feed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223538939,"owners_count":17162014,"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":["atom","feed","feed-generator","hexo","hexo-plugin","javascript","rss"],"created_at":"2024-08-01T19:01:33.279Z","updated_at":"2024-11-07T15:30:28.457Z","avatar_url":"https://github.com/hexojs.png","language":"JavaScript","readme":"# hexo-generator-feed\n\n[![Build Status](https://github.com/hexojs/hexo-generator-feed/workflows/Tester/badge.svg)](https://github.com/hexojs/hexo-generator-feed/actions?query=workflow%3ATester)\n[![NPM version](https://badge.fury.io/js/hexo-generator-feed.svg)](https://www.npmjs.com/package/hexo-generator-feed)\n[![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-generator-feed.svg)](https://coveralls.io/r/hexojs/hexo-generator-feed?branch=master)\n\nGenerate Atom 1.0 or RSS 2.0 feed.\n\n## Install\n\n``` bash\nnpm install hexo-generator-feed --save\n```\n\n- Hexo 4+: 2.x\n- Hexo 3: 1.x\n- Hexo 2: 0.x\n\n## Use\n\nIn the [front-matter](https://hexo.io/docs/front-matter.html) of your post, you can optionally add a `description`, `intro` or `excerpt` setting to write a summary for the post. Otherwise the summary will default to the excerpt or the first 140 characters of the post.\n\n## Options\n\nYou can configure this plugin in `_config.yml`.\n\n``` yaml\nfeed:\n  enable: true\n  type: atom\n  path: atom.xml\n  limit: 20\n  hub:\n  content:\n  content_limit: 140\n  content_limit_delim: ' '\n  order_by: -date\n  icon: icon.png\n  autodiscovery: true\n  template:\n```\n- **enable** - Enables or disables this plugin. Enabled by default.\n- **type** - Feed type. `atom` or `rss2`. Specify `['atom', 'rss2']` to output both types. (Default: `atom`)\n  * Example:\n  ``` yaml\n  feed:\n    # Generate atom feed\n    type: atom\n\n    # Generate both atom and rss2 feeds\n    type:\n      - atom\n      - rss2\n    path:\n      - atom.xml\n      - rss2.xml\n  ```\n- **path** - Feed path. When both types are specified, path must follow the order of type value. (Default: atom.xml/rss2.xml)\n- **limit** - Maximum number of posts in the feed (Use `0` or `false` to show all posts)\n- **hub** - URL of the PubSubHubbub hubs (Leave it empty if you don't use it)\n- **content** - (optional) set to 'true' to include the contents of the entire post in the feed.\n- **content_limit** - (optional) Default length of post content used in summary. Only used, if **content** setting is false and no custom post description present.\n- **content_limit_delim** - (optional) If **content_limit** is used to shorten post contents, only cut at the last occurrence of this delimiter before reaching the character limit. Not used by default.\n- **order_by** - Feed order-by. (Default: -date)\n- **icon** - (optional) Custom feed icon. Defaults to a gravatar of email specified in the main config.\n- **autodiscovery** - Add feed [autodiscovery](https://www.rssboard.org/rss-autodiscovery). (Default: `true`)\n  * Many themes already offer this feature, so you may also need to adjust the theme's config if you wish to disable it.\n- **template** - Custom template path(s). This file will be used to generate feed xml file, see the default templates: [atom.xml](atom.xml) and [rss2.xml](rss2.xml).\n  * It is possible to specify just one custom template, even when this plugin is configured to output both feed types,\n  ``` yaml\n  # (Optional) Exclude custom template from being copied into public/ folder\n  # Alternatively, you could also prepend an underscore to its filename, e.g. _custom.xml\n  # https://hexo.io/docs/configuration#Include-Exclude-Files-or-Folders\n  exclude:\n    - 'custom.xml'\n  feed:\n    type:\n      - atom\n      - rss2\n    template:\n      - ./source/custom.xml\n    # atom will be generated using custom.xml\n    # rss2 will be generated using the default template instead\n  ```\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexojs%2Fhexo-generator-feed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhexojs%2Fhexo-generator-feed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhexojs%2Fhexo-generator-feed/lists"}