惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
W
WeLiveSecurity
Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research
Google DeepMind News
Google DeepMind News
F
Full Disclosure
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Register - Security
The Register - Security
G
Google Developers Blog
C
Check Point Blog
GbyAI
GbyAI
A
About on SuperTechFans
V
Vulnerabilities – Threatpost
T
The Blog of Author Tim Ferriss
T
Tor Project blog
AWS News Blog
AWS News Blog
Cyberwarzone
Cyberwarzone
C
CERT Recently Published Vulnerability Notes
MongoDB | Blog
MongoDB | Blog
Latest news
Latest news
aimingoo的专栏
aimingoo的专栏
U
Unit 42
Y
Y Combinator Blog
P
Privacy International News Feed
Cisco Talos Blog
Cisco Talos Blog
S
Securelist
S
Schneier on Security
雷峰网
雷峰网
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Attack and Defense Labs
Attack and Defense Labs
P
Proofpoint News Feed
C
Cisco Blogs
Webroot Blog
Webroot Blog
T
Troy Hunt's Blog
Google Online Security Blog
Google Online Security Blog
月光博客
月光博客
P
Privacy & Cybersecurity Law Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
罗磊的独立博客
Cloudbric
Cloudbric
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Hacker News: Ask HN
Hacker News: Ask HN
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 司徒正美
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Security Blog
Microsoft Security Blog

定の栈

macOS Tahoe 如何用自己的视频做动态壁纸(替换 Aerial 方法) Podman Compose 常用命令速查 创建 Swap 文件 Cursor 2025 Hugo 中文阅读时间计算模版 手动重加载不蒜子计数 入坑舞萌 DX 历时两月终抵 w0 与首鸟加 多邻国 600 天连胜 原神五周年纪念 Asuna 成年生日 告别绝区零 站长18周岁啦! 一位动漫迷的追番日志与热情之旅 起飞日志 Reflector 镜像列表更新常用命令与配置文件 个人自用 rsync 文件同步常用命令 历时千日原神,深渊终抵满星 Arch Linux 个人常用命令记录 《三体III:死神永生》 《三体II:黑暗森林》 《千恋*万花》与现代物理学概念奇妙碰撞后产生出的糟糕想法 Minecraft 15 周年骨折价补票入正 网页添加 Live2D 看板娘 记第二次清醒控梦体验 晶蝶终于收集到了x9999上限! 博客成立一周年了! 终于出雾切辣! 让萝莉受孕的糟糕教学 双11剁手铠侠RC20固态体验 Twikoo评论系统备份更改数据 解决Hexo推送时的spawn failed报错 基于 Butterfly 主题的轮播插件美化 原神60级毕业啦! 站长16周岁啦! 本站使用的一些 npm 模块插件 显示器屏幕亮度调节工具推荐 Butterfly主题公告栏插入a标签按钮 关于niconico上兄贵本篇的收集 常用代理设置汇总 HTTP状态码释义 HTML转义字符对照表 HTTP Content-type对照表 部署Meting-API 抽出1命万叶了! 解决打开IE强制跳转Edge浏览器 为你的博客更换鸿蒙字体 无服务器部署Google谷歌镜像 有关科技创新的未来世界的小说。(ChatGPT) 萝莉的审视与经验 提问的智慧 hexo-filter-nofollow插件中文文档 Butterfly 主题 HTML5 音乐播放器 APlayer 美化调整 ChatGPT注册&使用&调教&镜像整合 Markdown 语法与外置标签写法汇总 突破天翼校园网限制开启移动热点 原神 mod 模组安装教程 WordPress自用插件和主题推荐 Hexo 下 Markdown 语法失效总结 Git常用基本命令使用详细大全 VScode递增减数字或字母插件 《三体I:地球往事》 CDN整理汇总 ASCII 字符画生成 原神胡桃复刻抽卡记录 九亿张涩图收藏 《流浪地球》 原神私服常见问题 原神私服常用指令 原神私服游玩教程整合 安装 ImageMagick 扩展 使 WP 的 URL 链接支持中文 Hello World
hexo-generator-feed插件中文文档
hexojs · 2023-04-21 · via 定の栈

声明

本文档由本人机翻hexo-generator-feed的官方文档,仅用于记录

hexo-generator-feed 官方文档:https://github.com/hexojs/hexo-generator-feed

hexo-generator-feeds

生成 Atom 1.0 或 RSS 2.0 博客信息馈送

安装

$ npm install hexo-generator-feed --save

支持 Hexo 版本:

  • Hexo 4+: 2.x
  • Hexo 3: 1.x
  • Hexo 2: 0.x

使用

在帖子的front-matter部分,您可以选择添加description, introexcerpt设置来为帖子撰写摘要。 否则摘要将默认为摘录或帖子的前 140 个字符

配置

您可以在 Hexo 的_config.yml中配置此插件。

feed:
  enable: true
  type: atom
  path: atom.xml
  limit: 20
  hub:
  content:
  content_limit: 140
  content_limit_delim: " "
  order_by: -date
  icon: icon.png
  autodiscovery: true
  template:
  • enable - 启用或禁用此插件。 默认启用。

  • type - 馈送类型。atomrss2。指定['atom', 'rss2']以输出两种类型。(默认值:atom

    • 例子:
    feed:
      # Generate atom feed
      type: atom
    
      # Generate both atom and rss2 feeds
      type:
        - atom
        - rss2
      path:
        - atom.xml
        - rss2.xml
  • path - 馈送路径。当指定两种类型时,路径必须遵循类型值的顺序。(默认:atom.xml/rss2.xml)

  • limit - 馈送中的最大帖子数(使用0false显示所有帖子)

  • hub - PubSubHubbub中心的 URL(如果你不使用它,请将其留空)

  • content - (可选)设置为true以在馈送中包含整篇帖子的内容。

  • content_limit - (可选)摘要中帖子内容的默认字数。 仅在内容设置为false且不存在自定义帖子描述时使用。

  • content_limit_delim - (可选)如果使用 content_limit 来缩短帖子内容,则仅在达到字符限制之前在此分隔符的最后一次出现处进行剪切。 默认不使用。

  • order_by - 按顺序馈送。(默认值:-date)

  • icon - (可选)自定义提要图标。 默认为主配置中指定的电子邮件头像。

  • autodiscovery - 添加馈送自动发现。(默认值:true

    • 许多主题已经提供了这个功能,所以如果你想禁用它,你可能还需要调整主题的配置。
  • template - 自定义模板路径。 该文件将用于生成提要 xml 文件,请参阅默认模板:atom.xmlrss2.xml

    • 可以只指定一个自定义模板,即使此插件配置为输出两种提要类型,
    # (Optional) Exclude custom template from being copied into public/ folder
    # Alternatively, you could also prepend an underscore to its filename, e.g. _custom.xml
    # https://hexo.io/docs/configuration#Include-Exclude-Files-or-Folders
    exclude:
      - "custom.xml"
    feed:
      type:
        - atom
        - rss2
      template:
        - ./source/custom.xml
      # atom will be generated using custom.xml
      # rss2 will be generated using the default template instead

赞助

  • 微信

    微信

  • 支付宝

    支付宝