RelPermalink.md - hugo - [fork] hugo port for 9front
HTML git clone https://git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
RelPermalink.md (462B)
---
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 Site 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 ```