gtx


Branch: develop

Author
thewhodidthis <thewhodidthis@fastmail.com>
Date
Jan. 25 '23 21:30:32
Commit
35739d4ce48c7bec4f312d38e336f0cf5f79c905
Parent
ddd978bdf49c3e7f16cfc03c556f43bfd1f8ec8c
Changes
diff --git a/home.html.tmpl b/home.html.tmpl
index 169bfb0..9b218e6 100644
--- a/home.html.tmpl
+++ b/home.html.tmpl
@@ -11,28 +11,33 @@
     <main>
       <hr>
       <h2>Repository</h2>
-      <p>Clone this repository using: <code>git clone {{.Link}}</code></p>
-      <h2>Branches</h2>
+      <p>Clone this repo using: <code>git clone {{.Link}}</code></p>
       {{- 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>
+      <h2>Branches</h2>
+      {{- range $list}}
+      <details>
+        <summary><a href="/branch/{{.Name}}/">{{.Name}}</a></summary>
+        {{- with and (len .Commits) (index .Commits 0) }}
+        <dl>
+          <dt>Subject</dt>
+          <dd>{{.Subject}}</dd>
+          <dt>Author</dt>
+          <dd>{{.Author.Name}} <{{.Author.Email}}></dd>
+          <dt>Date</dt>
+          <dd>
+            <time datetime="{{.Date.Format "2006-01-02"}}">{{.Date.Format "Jan. 02 '06 15:04:05"}}</time>
+          </dd>
+        </dl>
         {{- end}}
-      </ul>
+      </details>
+      {{- end}}
       {{- else}}
       <p>&hellip;</p>
       {{- end}}
       <hr>
     </main>
     <footer>
-      <p>Generated by <a href="https://github.com/thewhodidthis/gtx">gtx</a> &rsaquo;</p>
+      <p>Made with <a href="https://github.com/thewhodidthis/gtx">gtx</a> &rsaquo;</p>
     </footer>
   </body>
 </html>