zerostaticthemes/hugo-whisper-theme

avoid subpages rendered in parent page

FalcoSuessgott opened this issue · 1 comments

Hi,

any advice how to avoid that the content of all childpages are rendered in the parent page?

e.g.: https://hugo-whisper.netlify.app/docs/

ok found it:

changed layouts/_default/list.html to:

{{ define "header_css" }}{{ end }}
{{ define "body_classes" }}page-default-list{{ end }}
{{ define "header_classes" }}{{ end }}

{{ define "main" }}

<span class="overview">Overview</span>
<h1 class="title">{{ .Title }}</h1>
<div class="content">
  {{ .Content }}
</div>

{{ end }}