From 5826b560acd9cf5b8796860a2c73b2c9e4e04d9e Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Sun, 3 Jan 2021 13:15:46 +0100 Subject: [PATCH] tags in home are links, inline with dates separated by a pipe; dates and tags have appropriate accompanying icons; specific tag section is now titled 'Tag: #sometag' --- assets/scss/style.scss | 5 +++-- layouts/_default/list.html | 4 +--- layouts/_default/single.html | 5 ++++- layouts/index.html | 8 ++++++-- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/assets/scss/style.scss b/assets/scss/style.scss index acff227..2195e88 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -22,7 +22,7 @@ a { text-decoration: none; border-bottom: 2px solid $fg_color; &:hover { - border-bottom: 2px solid $accent_color; + border-color: $accent_color !important; } } @@ -128,8 +128,9 @@ pre code { padding: 0 } -.date { +.date, .date a { color: $dim_fg_color; + border-color: $dim_fg_color; font-size: .9em; } diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 1138e3a..4b050f9 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,13 +1,11 @@ {{ define "main" }}

- {{ $title := .Title }} {{ $section := .Section | humanize }} {{ if and (ne $section $title) (ne $section "Tags") }} {{ $section }}: {{ end }} - {{ if and (eq $section "Tags") (ne $section $title) }}#{{ end }}{{ $title }} - + {{ if and (eq $section "Tags") (ne $section $title) }}Tag: #{{ end }}{{ $title }}