hugo: hugo new theme does not create a baseof.html
As Block-Templates are the new default I think that the directory layout of a theme created by hugo new
should reflect this and create a baseof.html
in _default
.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 20 (17 by maintainers)
Commits related to this issue
- commands: Create _default/baseof.html in "new theme" Thanks to @digitalcraftsman, @bep and @rdwatters for providing the actual content of the default baseof.html file. Fixes #3576 — committed to anthonyfok/hugo by anthonyfok 6 years ago
- commands: Create _default/baseof.html in "new theme" Thanks to @digitalcraftsman, @bep and @rdwatters for providing the actual content of the default baseof.html file. Fixes #3576 — committed to gohugoio/hugo by anthonyfok 6 years ago
And we crossed streams. Oops.
This would be a good start:
The partial pattern is still useful and should still be part of the scheleton, as long as the templates are well formed:
Or variants of the above. In the above, all templates are well formed (base + footer + partial).
The general tenor of the comments seems to supports this proposal. I would to extend this thought by linking the files together as follows:
Hugo generates
header.html
andfooter.html
by default. So thebaseof.html
would look like this:404.html
,list.html
,single.html
andindex.html
would consist of