New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taxonomy terms singular templates won't inherit layout from _default/baseof.html #3856

Closed
guayom opened this Issue Sep 3, 2017 · 0 comments

Comments

Projects
None yet
2 participants
@guayom

guayom commented 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 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 }}

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

@bep bep changed the title from Taxonomy List Templates won't inherit layout from baseof to Taxonomy terms Templates won't inherit layout from _default/baseof.html Sep 3, 2017

@bep bep added the Bug label Sep 3, 2017

@bep bep changed the title from Taxonomy terms Templates won't inherit layout from _default/baseof.html to Taxonomy terms singular templates won't inherit layout from _default/baseof.html Sep 3, 2017

@bep bep self-assigned this Sep 3, 2017

@bep bep added this to the v0.27 milestone Sep 3, 2017

@bep bep closed this in f88fe31 Sep 3, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment