HUGO
News Docs Themes Community GitHub

RelPermalink

Returns the relative permalink of the given page.

Syntax

PAGE.RelPermalink

Returns

string

Site configuration:

baseURL = 'https://example.org/docs/'
title = 'Documentation'

Template:

{{ $page := .Site.GetPage "/about" }}
{{ $page.RelPermalink }} → /docs/about/