Question about best practice - performance-wise and DRY concerns - about setting up page templates.
I have a single.html
in my layouts/_default
folder that pretty much works for everything on my site. However, I do have some content types that use a different set of layouts and styles for which I’m wondering which is the best approach: (Note that article head/foot - not to be confused with site header and footer - are the same in all situations, and only the content would differ)
- Use the same
layouts/_default/single.html
file and determine which content partial to use viaif eq .Type "type"/else
statements - Set up separate
single.html
templates in each of the content typelayout/
folders, and pull in the universal article head/foot via partials or template blocks (or other, if I’m missing something else)