/layouts/_default/<VIEW>.html rendered before /layouts/<TYPE>/<VIEW>.html

I have

layouts/
---- _default/
-------- list.html
-------- summary.html
---- repository/
-------- list.html
-------- summary.html

When I use {{ .Render "summary" }} in repository/list.html, HUGO render _default/summary.html not repository/summary.html.

hugo v0.82.0+extended linux/amd64

Hello,

We cannot know what may cause the issue you describe without seeing the project in question or at the very least a minimal repository that reproduces the issue.

Also see the Requesting Help guidelines.

I suspect that you are displaying more than one content type on the list page. When the list page encounters a “repository” item, it will use repository/summary, otherwise it will use _default.summary. This is the intended behavior.