summaryrefslogtreecommitdiff
path: root/template/index.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/index.tmpl')
-rw-r--r--template/index.tmpl23
1 files changed, 15 insertions, 8 deletions
diff --git a/template/index.tmpl b/template/index.tmpl
index 843a791..1803dd5 100644
--- a/template/index.tmpl
+++ b/template/index.tmpl
@@ -3,15 +3,22 @@
{{define "title"}}Article index{{end}}
{{define "content"}}
-<section>
+ <section>
<h2>{{template "title"}}</h2>
- <dl>
+ <ul class="list-group">
{{range .Data}}
- <dt><a href="{{.Path}}">{{.Title}}</a></dt>
- <dd>{{template "time" .Time}}
- {{with .Tags}}<div class="tags">{{range .}}{{.}} {{end}}</div>{{end}}
- </dd>
+ <li class="list-group-item">
+ <div class="d-flex justify-content-between">
+ <a href="{{.Path}}">{{.Title}}</a>
+ {{with .Tags}}
+ <span>
+ {{range .}}<span class="badge badge-default">{{.}}</span> {{end}}
+ </span>
+ {{end}}
+ </div>
+ <div>{{template "time" .Time}}</div>
+ </li>
{{end}}
- </dl>
-</section>
+ </ul>
+ </section>
{{end}}