HUGO
Menu
GitHub 87548 stars Mastodon

Rel

返回给定输出格式的 rel 值,要么是默认值,要么是在站点配置中定义的。

Syntax

OUTPUTFORMAT.Rel

Returns

string

要使用此方法,您必须首先使用 GetCanonical 方法从页面的 OutputFormats 集合中选择特定的 输出格式

{{ with .Site.Home.OutputFormats.Get "rss" }}
  {{ .Rel }} → alternate
{{ end }}

Last updated: January 1, 0001
Improve this page