Reverse list pages

Hi,

sorry for the confusing title, but I couldn’t think of a better term.

I would like to reverse the function that exists for the list posts. So when I call a subpage, I would like to have the content of the _index.md above the content of the subpage.

My goal is to publish terms of use, in the _index.md are the general ones to be observed and in the subpages I would then specifically address services I offer.

So it would look at the end as if it were a page on which all the terms of use are.

Example:

I open the page of Matrix then the following content is shown to me:

_index.md
matrix.md

layouts/_default/single.html

{{ define "main" }}
  <h1>{{ .Title }}</h1>
  {{ .Parent.Content }}
  {{ .Content }}
{{ end }}

It is that simple🙈, thank you

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