repos / pgit

static site generator for git
git clone https://github.com/picosh/pgit.git

commit
b1e0426
parent
c02493d
author
Eric Bower
date
2024-01-14 22:54:49 +0000 UTC
style: tweaks
3 files changed,  +31, -17
M html/header.partial.tmpl
+19, -17
 1@@ -1,22 +1,24 @@
 2 {{define "header"}}
 3-<h1 class="text-xl flex gap">
 4-  {{if .SiteURLs.HomeURL}}
 5-    <a href="{{.SiteURLs.HomeURL}}">repos</a>
 6-    <span>/</span>
 7-  {{end}}
 8-  <span>{{.Repo.RepoName}}</span>
 9-</h1>
10+<div class="flex flex-col gap-2">
11+  <h1 class="text-xl flex gap p-0">
12+    {{if .SiteURLs.HomeURL}}
13+      <a href="{{.SiteURLs.HomeURL}}">repos</a>
14+      <span>/</span>
15+    {{end}}
16+    <span>{{.Repo.RepoName}}</span>
17+  </h1>
18 
19-<nav class="text-lg">
20-  <a href="{{.SiteURLs.SummaryURL}}">summary</a> |
21-  <a href="{{.SiteURLs.RefsURL}}">refs</a> |
22-  <span class="font-bold">{{.RevData.Name}}</span> |
23-  <a href="{{.RevData.TreeURL}}">code</a> |
24-  <a href="{{.RevData.LogURL}}">commits</a>
25-</nav>
26+  <nav class="text-lg">
27+    <a href="{{.SiteURLs.SummaryURL}}">summary</a> |
28+    <a href="{{.SiteURLs.RefsURL}}">refs</a> |
29+    <span class="font-bold">{{.RevData.Name}}</span> |
30+    <a href="{{.RevData.TreeURL}}">code</a> |
31+    <a href="{{.RevData.LogURL}}">commits</a>
32+  </nav>
33 
34-<div class="mt-lg">
35-  <div class="text-lg">{{.Repo.Desc}}</div>
36-  <pre style="margin: 0;">git clone {{.SiteURLs.CloneURL}}</pre>
37+  <div>
38+    <div class="text-lg">{{.Repo.Desc}}</div>
39+    <pre class="m-0">git clone {{.SiteURLs.CloneURL}}</pre>
40+  </div>
41 </div>
42 {{end}}
M static/main.css
+4, -0
 1@@ -2,6 +2,10 @@
 2   border-bottom: 1px solid var(--grey);
 3 }
 4 
 5+.border-b:last-child {
 6+  border-bottom: 0;
 7+}
 8+
 9 body {
10   max-width: 900px;
11 }
M static/smol.css
+8, -0
 1@@ -418,6 +418,14 @@ figure {
 2   margin-right: 1rem;
 3 }
 4 
 5+.m {
 6+  margin: 0.5rem;
 7+}
 8+
 9+.p {
10+  padding: 0.5rem;
11+}
12+
13 .p-0 {
14   padding: 0;
15 }