Debian Codegraph @

docs/content/en/methods/page/Permalink.md

raw
1 ---
2 title: Permalink
3 description: Returns the permalink of the given page.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 returnType: string
9 signatures: [PAGE.Permalink]
10 ---
11
12 Project configuration:
13
14 {{< code-toggle file=hugo >}}
15 title = 'Documentation'
16 baseURL = 'https://example.org/docs/'
17 {{< /code-toggle >}}
18
19 Template:
20
21 ```go-html-template
22 {{ $page := .Site.GetPage "/about" }}
23 {{ $page.Permalink }} → https://example.org/docs/about/
24 ```