HUGO
Menu
GitHub 87548 stars Mastodon

Permalink

返回当前输出格式生成的页面的永久链接。

Syntax

OUTPUTFORMAT.Permalink

Returns

string

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

{{ with .Site.Home.OutputFormats.Get "rss" }}
  {{ .Permalink }} → https://example.org/index.xml
{{ end }}

Last updated: January 1, 0001
Improve this page