mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 06:16:06 +00:00
content: Consolidate configuration documentation
This commit is contained in:
1 parent
727ef6f665
commit
b6cae5cbc6
911 files changed
+10902
-11171
No files matched your search
@@ -3,14 +3,17 @@ title: RelPermalink
|
||||
description: Publishes the given resource and returns its relative permalink.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/resource/Permalink
|
||||
- methods/resource/Publish
|
||||
returnType: string
|
||||
signatures: [RESOURCE.RelPermalink]
|
||||
params:
|
||||
functions_and_methods:
|
||||
related:
|
||||
- methods/resource/Permalink
|
||||
- methods/resource/Publish
|
||||
returnType: string
|
||||
signatures: [RESOURCE.RelPermalink]
|
||||
---
|
||||
|
||||
{{% 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 [relative permalink](g).
|
||||
|
||||
```go-html-template
|
||||
@@ -18,5 +21,3 @@ The `Permalink` method on a `Resource` object writes the resource to the publish
|
||||
{{ .RelPermalink }} → /images/a.jpg
|
||||
{{ end }}
|
||||
```
|
||||
|
||||
{{% include "methods/resource/_common/global-page-remote-resources.md" %}}
|
||||
Reference in new issue
Block a user