mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-25 21:31:33 +00:00
parent
c1a2b7a102
commit
18d69d7f8c
1 changed files with 8 additions and 1 deletions
|
@ -1095,7 +1095,14 @@ func taxonomyRenderer(s *Site, taxes <-chan taxRenderInfo, results chan<- error,
|
|||
|
||||
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
|
||||
continue
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue