ref: b5b41c4468f9f678f68c93dbd7a93b57e833cff7
parent: bde807bd1e560fb4cc765c0fc22132db7f8a0801
author: Bjørn Erik Pedersen <[email protected]>
date: Fri May 26 06:51:17 EDT 2017
hugolib: Refine allKindsInPages
--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -42,9 +42,12 @@
)
var (
- cjk = regexp.MustCompile(`\p{Han}|\p{Hangul}|\p{Hiragana}|\p{Katakana}`)
- allKindsInPages = []string{KindPage, KindHome, KindSection, KindTaxonomy, KindTaxonomyTerm, kindRSS}
- allKinds = append(allKindsInPages, []string{kindSitemap, kindRobotsTXT, kind404}...)
+ cjk = regexp.MustCompile(`\p{Han}|\p{Hangul}|\p{Hiragana}|\p{Katakana}`)
+
+ // This is all the kinds we can expect to find in .Site.Pages.
+ allKindsInPages = []string{KindPage, KindHome, KindSection, KindTaxonomy, KindTaxonomyTerm}
+
+ allKinds = append(allKindsInPages, []string{kindRSS, kindSitemap, kindRobotsTXT, kind404}...)
)
const (