Debian Codegraph @

docs/content/en/methods/taxonomy/Page.md

raw
1 ---
2 title: Page
3 description: Returns the taxonomy page or nil if the taxonomy has no terms.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 returnType: page.Page
9 signatures: [TAXONOMY.Page]
10 ---
11
12 This `TAXONOMY` method returns `nil` if the taxonomy has no terms, so you must code defensively:
13
14 ```go-html-template
15 {{ with .Site.Taxonomies.tags.Page }}
16 <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
17 {{ end }}
18 ```
19
20 This is rendered to:
21
22 ```html
23 <a href="/tags/">Tags</a>
24 ```