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

@ -43,8 +43,11 @@ 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}...)
// 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 (