How does fronmatter property "layout" relate to layouts subdirectories?

Just a general comment:

  • I have seen many (and built some) Hugo sites; and I have always thought of the layout front matter as something you would use for the the rare cases where you wanted something very different.
  • One of the most frequent questions about this before v0.146 was about how to style nested sections/pages differently than the rest.
  • So, in v0.146 you can nest your templates reflecting your content structure, which is very powerful.
  • That way you can have mylayout(as set in front matter) look differently depending on the content path.
1 Like