You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Taxonomy List Templates won't inherit the layout from /default/_baseof.html when they're placed at /layouts/taxonomy/<SINGULAR>.html like stated at the docs
I tried on several sites and made a demo site and a repo to illustrate the issue.
When you got to /tags/, all you will see is a blank page. This is the code for that template:
/layouts/taxonomy/tag.html
{{ define "main" }}
This is the <strong>TAGS</strong> Taxonomy List Template. It IS NOT wrapped it the baseof template
<a href="https://gohugo.io/templates/taxonomy-templates/#taxonomy-list-templates">Docs</a>
{{ end }}
If you put your taxonomy list template on /layouts/_default/taxonomy.html it works just as expected. As you can see on this page.
The template for that page is here -> /layouts/_default/taxonomy.html
Hugo version 0.26
Mac OSX
The text was updated successfully, but these errors were encountered:
bep
changed the title
Taxonomy List Templates won't inherit layout from baseof
Taxonomy terms Templates won't inherit layout from _default/baseof.html
Sep 3, 2017
bep
changed the title
Taxonomy terms Templates won't inherit layout from _default/baseof.html
Taxonomy terms singular templates won't inherit layout from _default/baseof.html
Sep 3, 2017
Taxonomy List Templates won't inherit the layout from /default/_baseof.html when they're placed at
/layouts/taxonomy/<SINGULAR>.html
like stated at the docsI tried on several sites and made a demo site and a repo to illustrate the issue.
When you got to /tags/, all you will see is a blank page. This is the code for that template:
https://github.com/guayom/terms-template-test/blob/master/layouts/taxonomy/tag.html
If you put your taxonomy list template on
/layouts/_default/taxonomy.html
it works just as expected. As you can see on this page.The template for that page is here ->
/layouts/_default/taxonomy.html
Hugo version 0.26
Mac OSX
The text was updated successfully, but these errors were encountered: