{{ define "_partials/comicnav.html" }}
<nav class="comicnav">
	<a class="first" href="../">Anfang</a>
	<a class="prev" href="{{ .Params.prev }}">Zurück</a>
	{{ if .Params.next }}
		<a class="next" href="{{ .Params.next }}">Weiter</a>
	{{ else }}
		<span></span>
	{{ end }}
	{{ if .Params.last }}
		<a class="last" href="{{ .Params.last }}">Ende</a>
	{{ else }}
		<span></span>
	{{ end }}
</nav>
{{ end }}

{{ define "title" }}{{ .Title }} :: {{ .Site.Title }}{{ end }}

{{ define "htmlheadbefore" }}
	<link rel="preload" href="../{{ .Params.image }}" as="image">
	<link rel="prev" href="{{ .Params.prev }}">
	{{ if .Params.next }}
		<link rel="next" href="{{ .Params.next }}">
	{{ end }}
	{{ partial "comicpageslide.html" . }}
{{ end }}

{{ define "main" }}
	<h1>{{ .Title }}</h1>
	{{ partial "comicnav.html" . }}
	<div id="comicpage">
		<img src="../{{ .Params.image }}">
	</div>
	{{ partial "comicnav.html" . }}
{{ end }}