Page

Permalink

返回给定页面的永久链接。

签名
PAGE.Permalink
返回类型
string

项目配置:

title = 'Documentation'
baseURL = 'https://example.org/docs/'

模板:

{{ $page := .Site.GetPage "/about" }}
{{ $page.Permalink }} → https://example.org/docs/about/