From: Bjørn Erik Pedersen Date: Fri, 26 May 2017 07:51:17 +0000 (+0300) Subject: hugolib: Refine allKindsInPages X-Git-Tag: v0.22~47 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b5b41c44;p=brevno-suite%2Fhugo hugolib: Refine allKindsInPages --- diff --git a/hugolib/page.go b/hugolib/page.go index 6bf42cb2..d331f6e5 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -42,9 +42,12 @@ import ( ) 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 (