Fix periods in taxonomies create bad paths

Fixes #1188
This commit is contained in:
Ryan Clarke 2015-06-01 20:29:29 -04:00 committed by Bjørn Erik Pedersen
parent c1a2b7a102
commit 18d69d7f8c

View file

@ -1095,7 +1095,14 @@ func taxonomyRenderer(s *Site, taxes <-chan taxRenderInfo, results chan<- error,
n, base = s.newTaxonomyNode(t) n, base = s.newTaxonomyNode(t)
if err := s.renderAndWritePage("taxonomy "+t.singular, base, n, layouts...); err != nil { dest := base
if viper.GetBool("UglyURLs") {
dest = helpers.Uglify(base + ".html")
} else {
dest = helpers.PrettifyPath(base + "/index.html")
}
if err := s.renderAndWritePage("taxonomy "+t.singular, dest, n, layouts...); err != nil {
results <- err results <- err
continue continue
} }