aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgutmet <me.git@gutmet.org>2020-05-28 22:43:54 +0200
committergutmet <me.git@gutmet.org>2020-05-28 22:43:54 +0200
commit0011f1a171920f9ff996894ce3db7408229cbdb9 (patch)
treeeb284e52141234d994b3e5d99e52d0cad452be07
parent6cc17fd4e8f3bd3a84e72533aff7bef40e8f32ae (diff)
downloadwombat-0011f1a171920f9ff996894ce3db7408229cbdb9.tar.gz
better timeline
-rw-r--r--initer/styles.go10
-rw-r--r--initer/templates.go4
2 files changed, 3 insertions, 11 deletions
diff --git a/initer/styles.go b/initer/styles.go
index 4436c00..fddbe76 100644
--- a/initer/styles.go
+++ b/initer/styles.go
@@ -26,16 +26,6 @@ a.linktopost {
a.categoryListing {
color: #E8E8E8;
}
-a.timelineListing {
- color: #E8E8E8;
- text-decoration : none;
-}
-a.timelineListing:hover {
- color : red;
-}
-div.timelineListing {
- font-family: Monospace;
-}
img {
display:block;
max-width: 100%;
diff --git a/initer/templates.go b/initer/templates.go
index f872b88..84e6c67 100644
--- a/initer/templates.go
+++ b/initer/templates.go
@@ -64,9 +64,11 @@ var defaultTemplate string = `<!DOCTYPE html>
{{if .TimelineListing}}
<div class="timelineListing">
+<dl>
{{range $i, $post := .TimelineListing -}}
-<a href="{{$post.Link}}" class="timelineListing">{{$post.Meta.FormattedDate}} {{$post.Meta.Title}}</a><br>
+<dt>{{$post.Meta.FormattedDate}}</dt><dd><a href="{{$post.Link}}" class="timelineListing">{{$post.Meta.Title}}</a></dd>
{{end}}
+</dl>
</div>
{{end}}