HUGO
News Docs Themes Community GitHub

Permalink

Returns the permalink of the given page.

Syntax

PAGE.Permalink

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.Permalink }} → https://example.org/docs/about/