better timeline

This commit is contained in:
gutmet 2020-05-28 22:43:54 +02:00
parent 6cc17fd4e8
commit 0011f1a171
2 changed files with 3 additions and 11 deletions

View File

@ -26,16 +26,6 @@ a.linktopost {
a.categoryListing { a.categoryListing {
color: #E8E8E8; color: #E8E8E8;
} }
a.timelineListing {
color: #E8E8E8;
text-decoration : none;
}
a.timelineListing:hover {
color : red;
}
div.timelineListing {
font-family: Monospace;
}
img { img {
display:block; display:block;
max-width: 100%; max-width: 100%;

View File

@ -64,9 +64,11 @@ var defaultTemplate string = `<!DOCTYPE html>
{{if .TimelineListing}} {{if .TimelineListing}}
<div class="timelineListing"> <div class="timelineListing">
<dl>
{{range $i, $post := .TimelineListing -}} {{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}} {{end}}
</dl>
</div> </div>
{{end}} {{end}}