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