Alternatives
On this page
The rel
HTML attribute defines the relationship between a linked resource and the current document. An alternate
value indicates an alternate representation of the current document. With the type
attribute value of “application/rss+xml"or “application/atom+xml”, it creates a hyperlink referencing a syndication feed.
Settings
By default, when you build your site, Hugo generates RSS feeds for home, section, taxonomy, and term pages. You can control feed generation in config/_default/hugo.toml
.
For example, to generate feeds for home and section pages, but not for taxonomy and term pages:
[outputs]
home = ['html', 'rss']
section = ['html', 'rss']
taxonomy = ['html']
term = ['html']
Generated meta tags
Thulite uses AlternativeOutputFormats to return a slice of OutputFormat objects, excluding the current output format, each representing one of the output formats enabled for the given page.
Thulite SEO generates the following meta tags (if applicable) — for example:
<link rel="alternate" type="application/rss+xml" href="https://getdoks.org/index.xml" title="My Docs">