When to use .html or .html.html?

After reading through Hugo’s Lookup order I noticed that sometimes the ending of the templates is .html and sometimes .html.html. Is there any logic?

Example

[
layouts/posts/posts.html.html
layouts/posts/section.html.html
layouts/posts/list.html.html
layouts/posts/posts.html 
layouts/posts/section.html
layouts/posts/list.html
layouts/section/posts.html.html
layouts/section/section.html.html
layouts/section/list.html.html
layouts/section/posts.html
layouts/section/section.html
layouts/section/list.html
layouts/_default/posts.html.html
layouts/_default/section.html.html
layouts/_default/list.html.html
layouts/_default/posts.html
layouts/_default/section.html
layouts/_default/list.html
]

a nice thread about how hugo template lookup order work:

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.