diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-12-29 10:35:46 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-12-30 18:50:09 +0100 |
commit | 40ffb0484b96b7b77fb66202b33073b241807199 (patch) | |
tree | 6d9b9097b3adab78b3e07a257478d6e302944f1f /hugolib/site.go | |
parent | 4bae8b04aadd72d298bf2dd1bb1430806bf2869c (diff) |
hugolib: Restore 0.48 slash handling in taxonomies
Fixes #5571
Diffstat (limited to 'hugolib/site.go')
-rw-r--r-- | hugolib/site.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/hugolib/site.go b/hugolib/site.go index 1b3a317a1..9c225b332 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -1586,20 +1586,6 @@ func (s *Site) resetBuildState() { } } -func (s *Site) kindFromSections(sections []string) string { - if len(sections) == 0 { - return KindSection - } - - if _, isTaxonomy := s.Taxonomies[sections[0]]; isTaxonomy { - if len(sections) == 1 { - return KindTaxonomyTerm - } - return KindTaxonomy - } - return KindSection -} - func (s *Site) layouts(p *PageOutput) ([]string, error) { return s.layoutHandler.For(p.layoutDescriptor, p.outputFormat) } |