Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix base template lookup order for sections #2995
(also see img below)
This happens on both
I have a theme, with default layouts defined as follows:
And now the section's baseof template isn't used.
The rest of the templates are quite similar.
The result for
And then it stopped for some reason.
I can give you access to the repository in the screenshot, if you want to try running this.
OK, I now see that the documentation is inconsistent about this, see
So your syntax is correct for single templates, but not list, which does not make much sense. We will have to fix that.
But in the meantime, I would recommend sticking with this documentation re. the base templates:
Moving your section template to
Should do the trick.
Thank you for your reply!
I'm still a bit confused with all the sections :)
Because the following happened (MacOS, hugo v0.18.1):
The generated file for a single entry (accessible in browser from http://localhost:1313/gen/social/) still has the outer shell from
The generated file for "section list" (accessible in browser from http://localhost:1313/gen/) gets its outer shell from
changed the title from
Make section template selection consistent
Fix base template lookup order for sections
Feb 6, 2017
Ok, tried it out. The error is still there for themes.
Full version (based on this project):
The following layout works:
The following doesn't work:
I'll go with