repos / pgit

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

commit
9185313
parent
a9ecf15
author
Eric Bower
date
2023-08-14 15:18:05 +0000 UTC
feat: commit file header should be link
1 files changed,  +2, -1
M html/commit.page.tmpl
+2, -1
 1@@ -37,7 +37,8 @@
 2 
 3   {{range .Diff.Files}}
 4     <div id="diff-{{.Name}}" class="flex justify-between mono">
 5-      <span>{{.FileType}} {{if eq .FileType "R"}}{{.OldName}} => {{end}}{{.Name}}</span>
 6+      <a href="#diff-{{.Name}}">{{.FileType}} {{if eq .FileType "R"}}{{.OldName}} => {{end}}{{.Name}}</a>
 7+
 8       <div>
 9         <span class="color-green">+{{.NumAdditions}}</span>,
10         <span class="color-red">-{{.NumDeletions}}</span>