diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-05-26 10:51:17 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-05-26 10:51:17 +0300 |
commit | b5b41c4468f9f678f68c93dbd7a93b57e833cff7 (patch) | |
tree | 72f0f63fd33645c49e97bb4d2bff98a788a1a617 /hugolib | |
parent | bde807bd1e560fb4cc765c0fc22132db7f8a0801 (diff) |
hugolib: Refine allKindsInPages
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/page.go | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/hugolib/page.go b/hugolib/page.go index 6bf42cb24..d331f6e5d 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 ( |