RelPermalink
语法
PAGE.RelPermalink
返回
string
站点配置
hugo.
baseURL: https://example.org/docs/
title: Documentation
baseURL = 'https://example.org/docs/'
title = 'Documentation'
{
"baseURL": "https://example.org/docs/",
"title": "Documentation"
}
模板
{{ $page := .Site.GetPage "/about" }}
{{ $page.RelPermalink }} → /docs/about/