Rel
Returns the rel value of the given output format, either the default or as defined in the site configuration.
Syntax
OUTPUTFORMAT.Rel
Returns
string
To use this method you must first select a specific output format from a page’s OutputFormats collection using the Get or Canonical methods.
{{ with .Site.Home.OutputFormats.Get "rss" }}
{{ .Rel }} → alternate
{{ end }}Last updated:
February 6, 2026
:
content: Define canonical output format and default site (9b33bb5fa)
Improve this page