永久链接
Syntax
PAGE.Permalink
Returns
string
网站配置:
hugo.
baseURL: https://example.org/docs/
title: 文档
baseURL = 'https://example.org/docs/'
title = '文档'
{
"baseURL": "https://example.org/docs/",
"title": "文档"
}
模板:
{{ $page := .Site.GetPage "/about" }}
{{ $page.RelPermalink }} → https://example.org/docs/about/