Enable Home template

This commit is contained in:
Fliegerjohn 2024-11-01 14:30:42 +01:00
parent 7ab6e3802d
commit d8226c6138
Signed by: fliegerjohn
GPG key ID: E2221D5FE4656B6A
2 changed files with 15 additions and 9 deletions

15
layouts/home.html Normal file
View file

@ -0,0 +1,15 @@
{{ define "main" }}
<main aria-role="main">
<header class="home-page-header">
<h1>{{ .Title }}</h1>
{{ with .Params.subtitle }}
<span class="subtitle">{{ . }}</span>
{{ end }}
</header>
<div class="home-page-content">
<!-- Note that the content for index.html, as a sort of list page, will pull from content/_index.md -->
{{ .Content }}
</div>
</main>
{{ end }}

View file

@ -1,9 +0,0 @@
{{ define "main" }}
<main>
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}
{{ partial "pagination.html" . }}
</main>
{{ end }}