- commit
- ad355eb
- parent
- 3700715
- author
- Eric Bower
- date
- 2023-08-06 03:58:08 +0000 UTC
tweaks
4 files changed,
+8,
-2
+1,
-1
1@@ -29,7 +29,7 @@
2
3 <div>
4 {{range .Data.Diff.Files}}
5- <div>
6+ <div class="my-sm">
7 <span>{{.FileType}}</span>
8 <a href="#diff-{{.Name}}">{{.Name}}</a>
9 </div>
+1,
-1
1@@ -9,7 +9,7 @@
2 <div class="my box">
3 <div class="flex justify-between items-center">
4 <div><a class="text-lg" href="{{.URL}}">{{.Name}}</a></div>
5- <div class="text-sm">{{.LastCommit.Author.When}}</div>
6+ <div class="text-sm">{{.CommitDate}}</div>
7 </div>
8
9 <div class="my">{{.Desc}}</div>
M
main.go
+2,
-0
1@@ -21,6 +21,7 @@ type RepoItemData struct {
2 URL string
3 Name string
4 Desc string
5+ CommitDate string
6 LastCommit *git.Commit
7 }
8
9@@ -545,6 +546,7 @@ func main() {
10 URL: url,
11 Name: name,
12 Desc: r.Desc,
13+ CommitDate: timediff.TimeDiff(mainOutput.LastCommit.Author.When),
14 LastCommit: mainOutput.LastCommit,
15 })
16 }
+4,
-0
1@@ -123,6 +123,10 @@ pre {
2 margin-top: 1rem;
3 }
4
5+.my-sm {
6+ margin: 5px 0;
7+}
8+
9 .mono {
10 font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo,
11 monospace;