I read the Block templates doc page. But it was not clear how inheritance would work.
If I have a layouts/_default/baseof.html
, does that effectively become layouts/index.html
? Or do I still need that index.html
?
Would layouts/page/single.html
also inherit from layouts/_default/baseof.html
? Or do I need a separate baseof.html
for each subdirectory like page/
, categories/
, etc for taxonomies under layouts/
?
I am able to answer my own set of questions here based on my experience using the block templates.
If I have a layouts/_default/baseof.html
, does that effectively become layouts/index.html
? Or do I still need that index.html
?
Not exactly. But the good thing is that you can override the blocks in layouts/_default/baseof.html
using the {{ define .. }}
syntax in layouts/index.html
.
Would layouts/page/single.html
also inherit from layouts/_default/baseof.html
?
Yes!
Or do I need a separate baseof.html for each subdirectory like page/, categories/, etc for taxonomies under layouts/?
Nope.