Debian Codegraph @

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

raw
1 ---
2 title: RelPermalink
3 description: Returns the relative permalink of the given page.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 returnType: string
9 signatures: [PAGE.RelPermalink]
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.RelPermalink }} → /docs/about/
24 ```