This commit includes the footer.html partial file in the template so that it can be overridden to include content at the base of each page such as copyright notice, bottom menu, etc.
25 lines
1016 B
HTML
25 lines
1016 B
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.LanguageCode }}" dir="ltr">
|
|
{{ partial "head.html" . }}
|
|
<body class="list-body">
|
|
{{ partial "nav-bar.html" . }}
|
|
<main class="card-container side-gutter">
|
|
<header class="list-header">
|
|
<p class="list-header-subtext">{{ .Description }}</p>
|
|
<h1 class="list-header-title">{{ .Title }}</h1>
|
|
</header>
|
|
{{ $paginator := .Paginate (where .Pages "Params.displayinlist" "!=" false) -}}
|
|
{{- range $paginator.Pages -}}
|
|
{{ .Render "li" }}
|
|
{{- end }}
|
|
</main>
|
|
{{ if or ($paginator.HasPrev) ($paginator.HasNext) -}}
|
|
<nav class="pagination-nav side-padding">
|
|
{{ if $paginator.HasPrev }}<a href="{{ $paginator.Prev.URL }}" class="pagination-newer">< Newer Posts</a>{{ end }}
|
|
{{ if $paginator.HasNext }}<a href="{{ $paginator.Next.URL }}" class="pagination-older">Older Posts ></a>{{ end }}
|
|
</nav>
|
|
{{ end -}}
|
|
{{ partial "footer.html" . }}
|
|
{{ partial "scripts.html" . }}
|
|
</body>
|
|
</html> |