Saltar al contenido principal

Function: useAstroRssLinkTag()

useAstroRssLinkTag(config): string

Defined in: src/adapters/astro/rss.service.ts:159

Generate an HTML <link> tag for the RSS feed.

Parameters

config

Pick<RssConfig, "title" | "xmlPath">

Config with title and optional xmlPath

Returns

string

HTML link tag string

Example

const tag = useAstroRssLinkTag({ title: "My Blog" });
// <link rel="alternate" type="application/rss+xml" title="My Blog" href="/rss.xml" />