RelPermalink
返回给定页面的相对永久链接。
项目配置:
title = 'Documentation'
baseURL = 'https://example.org/docs/'模板:
{{ $page := .Site.GetPage "/about" }}
{{ $page.RelPermalink }} → /docs/about/返回给定页面的相对永久链接。
项目配置:
title = 'Documentation'
baseURL = 'https://example.org/docs/'模板:
{{ $page := .Site.GetPage "/about" }}
{{ $page.RelPermalink }} → /docs/about/