Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'

This commit is contained in:
Bjørn Erik Pedersen
2025-04-10 13:04:51 +02:00
987 changed files with 12379 additions and 14083 deletions

View File

@@ -1,16 +1,16 @@
---
title: Permalink
description: Publishes the given resource and returns its permalink.
description: Publishes the given resource and returns its permalink.
categories: []
keywords: []
action:
related:
- methods/resource/RelPermalink
- methods/resource/Publish
returnType: string
signatures: [RESOURCE.Permalink]
params:
functions_and_methods:
returnType: string
signatures: [RESOURCE.Permalink]
---
{{% include "/_common/methods/resource/global-page-remote-resources.md" %}}
The `Permalink` method on a `Resource` object writes the resource to the publish directory, typically `public`, and returns its [permalink](g).
```go-html-template
@@ -18,5 +18,3 @@ The `Permalink` method on a `Resource` object writes the resource to the publish
{{ .Permalink }} → https://example.org/images/a.jpg
{{ end }}
```
{{% include "methods/resource/_common/global-page-remote-resources.md" %}}