-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed
Description
Relevant discussion here: https://discuss.gohugo.io/t/block-templates-outside-of-a-theme/4806
Repro case here: https://github.com/ebr/hugo-example
Summary:
templates that use blocks (e.g. baseof.html) cannot be overridden on their own. They require the sub-templates (ones that define blocks) to be also present in the project.
Steps to reproduce:
- create a theme using block templates, e.g
./theme/layouts/_default/baseof.html,./theme/layouts/index.html, whereindex.htmldefines a block that is used inbaseof.html - copy
baseof.htmlto./layouts/_default/(out of the theme and up into the project) - delete
baseof.htmlin the theme
Result:
- rendered
index.htmlis blank. the base template isn't finding theindex.htmlblock template.
Expected:
baseof.htmlshould use the relevant template from the theme.
Version:
Hugo 0.18-DEV