RelPermalink
Syntax
PAGE.RelPermalink
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.Permalink }} → /docs/about/