depp

No frills static page generator for Git repositories

git clone https://git.8pit.net/depp.git

 1<!DOCTYPE html>
 2<html lang="en">
 3	<head>
 4		<meta charset="UTF-8">
 5		<meta name="viewport" content="width=device-width,initial-scale=1">
 6
 7		<title>{{ .Title }}</title>
 8		<link rel="stylesheet" href="style.css">
 9	</head>
10	<body>
11		<header>
12			<h1>{{ .Title }}</h1>
13			{{ if .Desc -}}
14				<p>{{ .Desc }}</p>
15			{{- end }}
16		</header>
17
18		<main>
19			{{ template "repos.tmpl" .Repos }}
20
21			{{ if (ne .NumPages 1) }}
22			<nav>
23				<ul class="pager">
24					{{- $page := .CurPage -}}
25					{{ range (pageRefs .) }}
26						<li><a {{ if (eq . $page) }}class="current"{{ end }} href="{{ pageName . }}">{{ . }}</a></li>
27					{{- end }}
28				</ul>
29			</nav>
30			{{ end }}
31		</main>
32	</body>
33</html>