summaryrefslogtreecommitdiffstats
path: root/resources/page/page_kinds.go
diff options
context:
space:
mode:
Diffstat (limited to 'resources/page/page_kinds.go')
-rw-r--r--resources/page/page_kinds.go25
1 files changed, 16 insertions, 9 deletions
diff --git a/resources/page/page_kinds.go b/resources/page/page_kinds.go
index 1f59ec869..719375f66 100644
--- a/resources/page/page_kinds.go
+++ b/resources/page/page_kinds.go
@@ -20,18 +20,25 @@ const (
// The rest are node types; home page, sections etc.
- KindHome = "home"
- KindSection = "section"
- KindTaxonomy = "taxonomy"
- KindTaxonomyTerm = "taxonomyTerm"
+ KindHome = "home"
+ KindSection = "section"
+
+ // Note tha before Hugo 0.73 these were confusingly named
+ // taxonomy (now: term)
+ // taxonomyTerm (now: taxonomy)
+ KindTaxonomy = "taxonomy"
+ KindTerm = "term"
)
var kindMap = map[string]string{
- strings.ToLower(KindPage): KindPage,
- strings.ToLower(KindHome): KindHome,
- strings.ToLower(KindSection): KindSection,
- strings.ToLower(KindTaxonomy): KindTaxonomy,
- strings.ToLower(KindTaxonomyTerm): KindTaxonomyTerm,
+ strings.ToLower(KindPage): KindPage,
+ strings.ToLower(KindHome): KindHome,
+ strings.ToLower(KindSection): KindSection,
+ strings.ToLower(KindTaxonomy): KindTaxonomy,
+ strings.ToLower(KindTerm): KindTerm,
+
+ // Legacy, pre v0.53.0.
+ "taxonomyterm": KindTaxonomy,
}
// GetKind gets the page kind given a string, empty if not found.