72 lines
2.1 KiB
HTML
72 lines
2.1 KiB
HTML
{{ define "nextprev" }}
|
|
<div class="nextprev">
|
|
<ul>
|
|
<li><a href="/{{ .First }}"><<</a></li>
|
|
<li><a href="/{{ .Previous }}">prev</a></li>
|
|
<li><a href="/random">random</a></li>
|
|
<li><a href="/{{ .Next }}" style="margin-left: auto;">next</a></li>
|
|
<li><a href="/{{ .Last }}">>></a></li>
|
|
</ul>
|
|
</div>
|
|
{{ end }}
|
|
|
|
{{ define "comic" }}
|
|
<div class="comic">
|
|
<h2><a href="/{{ .Current }}">{{ .Comic.Title }}</a></h2>
|
|
{{ template "nextprev" .}}
|
|
<img src="/media/{{ .Comic.Image }}"></img>
|
|
<p>Black Ram Comics Issue No. {{ .Current }}, {{ .Comic.Title }}</p>
|
|
{{ template "nextprev" .}}
|
|
</div>
|
|
{{ end }}
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<link rel="icon" type="/image/png" href="/static/img/favicon.png"/>
|
|
<link rel="stylesheet" href="/static/css/footer.css">
|
|
<link rel="stylesheet" href="/static/css/comic.css">
|
|
<link rel="stylesheet" href="/static/css/base.css">
|
|
<link rel="stylesheet" href="/static/css/bar.css">
|
|
<link rel="stylesheet" href="/static/css/top.css">
|
|
<title>{{ .Title }}</title>
|
|
</head>
|
|
<body>
|
|
<div class="top">
|
|
|
|
<div class="title">
|
|
<a href="/">
|
|
<h1>Black Ram Comics</h1>
|
|
</a>
|
|
</div>
|
|
|
|
<div class="bar">
|
|
<ul>
|
|
<li><a href="/about">about</a></li>
|
|
<li><a href="/all">all</a></li>
|
|
<li><a href="/blog">blog</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content">
|
|
{{ template "comic" . }}
|
|
</div>
|
|
<div class="footer">
|
|
{{ if .Combo }}
|
|
<div class="combo">
|
|
<p>current combo: {{ .Combo }}</p>
|
|
</div>
|
|
{{ end }}
|
|
<footer>
|
|
<ul>
|
|
<li>© 2023 drevil. All rights reserved.</li>
|
|
<li>The source code for this website can be found at <a href="https://tildegit.org/drevil/comics">tildegit.org/drevil/comics</a></li>
|
|
</ul>
|
|
</footer>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|