Skip to content
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 · 1 comment
Assignees
Milestone

Comments

@guayom
Copy link

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 Taxonomy List Templates won't inherit layout from baseof 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 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
@bep bep self-assigned this Sep 3, 2017
@bep bep added this to the v0.27 milestone Sep 3, 2017
@bep bep closed this as completed in f88fe31 Sep 3, 2017
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants