mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
507 B
507 B
title | description | categories | keywords | action | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Page | Returns the taxonomy page or nil if the taxonomy has no terms. |
|
{{< new-in 0.125.0 >}}
This TAXONOMY
method returns nil if the taxonomy has no terms, so you must code defensively:
{{ with .Site.Taxonomies.tags.Page }}
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }}
This is rendered to:
<a href="/tags/">Tags</a>