summaryrefslogtreecommitdiffstats
path: root/docs/content/en/methods/page/RelPermalink.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/methods/page/RelPermalink.md')
-rw-r--r--docs/content/en/methods/page/RelPermalink.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/content/en/methods/page/RelPermalink.md b/docs/content/en/methods/page/RelPermalink.md
new file mode 100644
index 000000000..8a5972ccc
--- /dev/null
+++ b/docs/content/en/methods/page/RelPermalink.md
@@ -0,0 +1,25 @@
+---
+title: RelPermalink
+description: Returns the relative permalink of the given page.
+categories: []
+keywords: []
+action:
+ related:
+ - methods/page/Permalink
+ 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.Permalink }} → /docs/about/
+```