Erstes Commit
This commit is contained in:
9
hugo/layouts/comics/comiclist.html
Normal file
9
hugo/layouts/comics/comiclist.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ range .Pages }}
|
||||
<div class="box">
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
<p>{{ .Description }}</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
44
hugo/layouts/comics/list.html
Normal file
44
hugo/layouts/comics/list.html
Normal file
@@ -0,0 +1,44 @@
|
||||
{{ define "title" }}{{ .Title }}, Seite 1 :: {{ .Site.Title }}{{ end }}
|
||||
|
||||
{{ define "htmlheadbefore" }}
|
||||
{{ $images := .Resources.ByType "image" }}
|
||||
{{ $imageCount := len $images }}
|
||||
{{ $firstImage := index $images 0 }}
|
||||
<link rel="preload" href="{{ $firstImage.RelPermalink }}" as="image">
|
||||
{{ if gt $imageCount 1 }}
|
||||
<link rel="next" href="2/">
|
||||
{{ end }}
|
||||
{{ partial "comicpageslide.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{ $images := .Resources.ByType "image" }}
|
||||
{{ $imageCount := len $images }}
|
||||
{{ $firstImage := index $images 0 }}
|
||||
<h1>{{ .Title }}, Seite 1</h1>
|
||||
<nav class="comicnav">
|
||||
<span></span>
|
||||
<span></span>
|
||||
{{ if gt $imageCount 1 }}
|
||||
<a class="next" href="2/">Weiter</a>
|
||||
<a class="last" href="{{ $imageCount }}/">Ende</a>
|
||||
{{ else }}
|
||||
<span></span>
|
||||
<span></span>
|
||||
{{ end }}
|
||||
</nav>
|
||||
<div id="comicpage">
|
||||
<img src="{{ $firstImage.RelPermalink }}">
|
||||
</div>
|
||||
<nav class="comicnav">
|
||||
<span></span>
|
||||
<span></span>
|
||||
{{ if gt $imageCount 1 }}
|
||||
<a class="next" href="2/">Weiter</a>
|
||||
<a class="last" href="{{ $imageCount }}/">Ende</a>
|
||||
{{ else }}
|
||||
<span></span>
|
||||
<span></span>
|
||||
{{ end }}
|
||||
</nav>
|
||||
{{ end }}
|
||||
36
hugo/layouts/comics/single.html
Normal file
36
hugo/layouts/comics/single.html
Normal file
@@ -0,0 +1,36 @@
|
||||
{{ 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 }}
|
||||
Reference in New Issue
Block a user