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