hugolib: Refine allKindsInPages

This commit is contained in:
Bjørn Erik Pedersen 2017-05-26 10:51:17 +03:00
parent bde807bd1e
commit b5b41c4468

View file

@ -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 (