mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
576 B
576 B
title, description, categories, keywords, params
title | description | categories | keywords | params | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RelPermalink | Publishes the given resource and returns its relative 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 relative permalink.
{{ with resources.Get "images/a.jpg" }}
{{ .RelPermalink }} → /images/a.jpg
{{ end }}