gtx


Branch: develop

Author
thewhodidthis <thewhodidthis@fastmail.com>
Date
Jan. 24 '23 22:11:55
Commit
de3a4e24a2644944cfbc5ea61a72b4161e9b2c05
Parent
2b89ca5bbfb823003e67e55cb5292669003bb543
Changes
diff --git a/home.html.tmpl b/home.html.tmpl
index 1f55981..169bfb0 100644
--- a/home.html.tmpl
+++ b/home.html.tmpl
@@ -2,21 +2,30 @@
 <html lang="en">
   <head>
     <meta charset="utf-8">
-    <title>{{.Title}}</title>
+    <title>{{.Project}}</title>
   </head>
   <body>
     <header>
-      <h1><a href="./">{{.Title}}</a></h1>
+      <h1><a href="./">{{.Project}}</a></h1>
     </header>
     <main>
       <hr>
       <h2>Repository</h2>
       <p>Clone this repository using: <code>git clone {{.Link}}</code></p>
       <h2>Branches</h2>
-      {{- range $i, $name := .Branches}}
-      <dl>
-        <dt>{{.}}</dt>
-      </dl>
+      {{- with $list := .Branches}}
+      <ul>
+        {{- range $list}}
+        <li>
+          <a href="{{.Name}}.html">{{.Name}}</a>:
+          {{- with and (len .Commits) (index .Commits 0) }}
+          <strong>{{.Subject}}</strong>
+          <span>{{.Author.Name}} <{{.Author.Email}}></span>
+          <time datetime="{{.Date.Format "2006-01-02"}}">{{.Date.Format "Jan. 02 '06 15:04:05"}}</time>
+          {{- end}}
+        </li>
+        {{- end}}
+      </ul>
       {{- else}}
       <p>&hellip;</p>
       {{- end}}