跳转到内容
搜索文档

RSSButton

最后更新 查看 MarkdownAgent 设置

示例

import { RSSButton } from "~/components";

<RSSButton changelog="Workers" />
<br />
<RSSButton href="/custom/feed.xml" text="Custom Feed" icon="ph:arrow-square-out" />

Props

text

类型:string

默认值:"Subscribe to RSS"

按钮中显示的文本。

icon

类型:string

默认值:"rss"

文本旁显示的图标。通过 astro-icon ↗ 渲染;接受任何 iconify 图标名称(例如 ph:rss-simple)。默认的 "rss" 映射到 ph:rss-simple。

changelog 或 href

您必须提供 changelog 或 href 之一,但不能同时提供:

changelog

类型:string

要链接到的更新日志的名称。这将被转换为小写、连字符分隔的字符串,并用于以 /changelog/rss/{changelog}.xml 格式构建 RSS 订阅 URL。

href

类型:string

要链接到的自定义 URL。当您需要链接到不遵循标准更新日志 URL 模式的 RSS 订阅源时使用此参数。

这篇文档对您有帮助吗?