RelPermalink
Returns the relative permalink of the given page.
Syntax
PAGE.RelPermalink
Returns
string
Site configuration:
baseURL: https://example.org/docs/
title: Documentation
baseURL = 'https://example.org/docs/'
title = 'Documentation'
{
"baseURL": "https://example.org/docs/",
"title": "Documentation"
}
Template:
{{ $page := .Site.GetPage "/about" }}
{{ $page.RelPermalink }} → /docs/about/
Last updated:
January 26, 2024
:
Squashed 'docs/' changes from 4dd2d6415..3b1a8579d (7125ad401)
Improve this page