Permalink
發布給定資源並返回其永久鏈接。
Syntax
RESOURCE.Permalink
Returns
string
Resource 對象上的 Permalink 方法將資源寫入發布目錄(通常是 public),並返回其 永久鏈接。
{{ with resources.Get "images/a.jpg" }}
{{ .Permalink }} → https://example.org/images/a.jpg
{{ end }}