summaryrefslogtreecommitdiff
path: root/htdocs/template/index.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'htdocs/template/index.tmpl')
-rw-r--r--htdocs/template/index.tmpl24
1 files changed, 24 insertions, 0 deletions
diff --git a/htdocs/template/index.tmpl b/htdocs/template/index.tmpl
new file mode 100644
index 0000000..1803dd5
--- /dev/null
+++ b/htdocs/template/index.tmpl
@@ -0,0 +1,24 @@
+{{/* This file is combined with the root.tmpl to display the blog index. */}}
+
+{{define "title"}}Article index{{end}}
+
+{{define "content"}}
+ <section>
+ <h2>{{template "title"}}</h2>
+ <ul class="list-group">
+ {{range .Data}}
+ <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}}
+ </ul>
+ </section>
+{{end}}