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>…</p>
{{- end}}
<hr>
</main>
<footer>
- <p>Generated by <a href="https://github.com/thewhodidthis/gtx">gtx</a> ›</p>
+ <p>Made with <a href="https://github.com/thewhodidthis/gtx">gtx</a> ›</p>
</footer>
</body>
</html>