From 0011f1a171920f9ff996894ce3db7408229cbdb9 Mon Sep 17 00:00:00 2001 From: gutmet Date: Thu, 28 May 2020 22:43:54 +0200 Subject: [PATCH] better timeline --- initer/styles.go | 10 ---------- initer/templates.go | 4 +++- 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 = ` {{if .TimelineListing}}
+
{{range $i, $post := .TimelineListing -}} -{{$post.Meta.FormattedDate}} {{$post.Meta.Title}}
+
{{$post.Meta.FormattedDate}}
{{$post.Meta.Title}}
{{end}} +
{{end}}