38 lines
921 B
HTML
38 lines
921 B
HTML
{{ define "title" }}
|
|
{{ .Page.Title | plainify }} | {{ .Site.Title }}
|
|
{{ end }}
|
|
|
|
{{ define "main-class" }}--list{{ end }}
|
|
|
|
{{ define "main-type" }}.{{ .Params.mainType }}{{ end }}
|
|
{{ define "item-type" }}{{ .Params.itemsType }}{{ end }}
|
|
|
|
{{ define "main-header" }}
|
|
<header class="site-content__header">
|
|
<h1 class="page-title">{{ .Title | safeHTML }}
|
|
{{ range .AlternativeOutputFormats -}}
|
|
<a href="{{ .RelPermalink }}">
|
|
<img class="feed-icon" src="/images/feed-icon.svg">
|
|
</a>
|
|
{{ end }}
|
|
</h1>
|
|
{{ .Content }}
|
|
</header>
|
|
{{ end }}
|
|
|
|
{{ define "main-body" }}
|
|
<main class="site-content__body">
|
|
{{ if .File }}
|
|
{{ if ( eq .File.Dir "log/" ) }}
|
|
{{ .Scratch.Set "listMode" "log" }}
|
|
{{ else if ( eq .File.Dir "wishlist/" ) }}
|
|
{{ .Scratch.Set "listMode" "wishlist" }}
|
|
{{ end }}
|
|
|
|
{{ if ( in "log/ wishlist/" .File.Dir ) }}
|
|
{{ partial "table" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</main>
|
|
{{ end }}
|