HUGO
News Docs Themes Community GitHub

Page

Returns the taxonomy page or nil if the taxonomy has no terms.

Syntax

TAXONOMY.Page

Returns

page.Page
New in v0.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>