Get path and template file name for all content

Is there a way to get a list of the template files used for all content. I’d like to be able to check and test if any content is for some reason falling back to layouts in the default folder.


You could add something like this in an appropriate place in each template:

{{ if eq "development" hugo.Environment }}
<pre>Template: layouts/partial/section.html</pre>
{{ end }}
1 Like