summaryrefslogtreecommitdiff
path: root/srv/src/api/tpl/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'srv/src/api/tpl/index.html')
-rw-r--r--srv/src/api/tpl/index.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/srv/src/api/tpl/index.html b/srv/src/api/tpl/index.html
new file mode 100644
index 0000000..240df92
--- /dev/null
+++ b/srv/src/api/tpl/index.html
@@ -0,0 +1,20 @@
+{{ define "body" }}
+<ul id="posts-list">
+
+ {{ range .Posts }}
+ <li>
+ <h2>
+ <a href="{{ .HTTPPath }}">{{ .Title }}</a>
+ </h2>
+ <span>{{ .PublishedAt.Format "2006-01-02" }}</span>
+ {{ if not .LastUpdatedAt.IsZero }}
+ <span>(Updated {{ .LastUpdatedAt.Format "2006-01-02" }})</span>
+ {{ end }}
+ <p>{{ .Description }}</p>
+ </li>
+ {{ end }}
+
+</ul>
+{{ end }}
+
+{{ template "base.html" . }}