From c373881ad84e49e553c847e181fac28e9725c21b Mon Sep 17 00:00:00 2001 From: Andrew Barrett-Sprot Date: Fri, 9 Mar 2018 20:22:05 +0000 Subject: [PATCH 1/5] point at the latest update --- layouts/updates/list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/updates/list.html b/layouts/updates/list.html index 659e0d8d..a35cfc83 100644 --- a/layouts/updates/list.html +++ b/layouts/updates/list.html @@ -9,9 +9,9 @@ Update File Download Image Download - {{ range .Pages.ByDate.Reverse }} + {{ range $index, $_ := .Pages.ByDate.Reverse }} - {{ .Title }} + {{ .Title }}{{ if (eq $index 0) }}(Latest){{ end }} {{ .Date.Format "2006-01-02" }} {{ if .Params.update }} From d3101fbd7a02038c4d206cd911f1dbfb98899b79 Mon Sep 17 00:00:00 2001 From: Andrew Barrett-Sprot Date: Fri, 9 Mar 2018 20:57:51 +0000 Subject: [PATCH 2/5] add space before latest --- layouts/updates/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/updates/list.html b/layouts/updates/list.html index a35cfc83..bbd60407 100644 --- a/layouts/updates/list.html +++ b/layouts/updates/list.html @@ -11,7 +11,7 @@ {{ range $index, $_ := .Pages.ByDate.Reverse }} - {{ .Title }}{{ if (eq $index 0) }}(Latest){{ end }} + {{ .Title }}{{ if (eq $index 0) }} (Latest){{ end }} {{ .Date.Format "2006-01-02" }} {{ if .Params.update }} From f4a5fe8d4ea62b258822d7420bc901ce11aabc48 Mon Sep 17 00:00:00 2001 From: Andrew Barrett-Sprot Date: Fri, 23 Mar 2018 21:41:06 +0000 Subject: [PATCH 3/5] Make '(Latest)' bold --- layouts/updates/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/updates/list.html b/layouts/updates/list.html index bbd60407..ba2a921d 100644 --- a/layouts/updates/list.html +++ b/layouts/updates/list.html @@ -11,7 +11,7 @@ {{ range $index, $_ := .Pages.ByDate.Reverse }} - {{ .Title }}{{ if (eq $index 0) }} (Latest){{ end }} + {{ .Title }}{{ if (eq $index 0) }} (Latest){{ end }} {{ .Date.Format "2006-01-02" }} {{ if .Params.update }} From b1461aadc27cbdfe703f78e1a92623b1fc34a463 Mon Sep 17 00:00:00 2001 From: Andrew Barrett-Sprot Date: Fri, 23 Mar 2018 21:43:21 +0000 Subject: [PATCH 4/5] change `em`s to `strong`s --- layouts/updates/list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/updates/list.html b/layouts/updates/list.html index ba2a921d..f138be25 100644 --- a/layouts/updates/list.html +++ b/layouts/updates/list.html @@ -11,7 +11,7 @@ {{ range $index, $_ := .Pages.ByDate.Reverse }} - {{ .Title }}{{ if (eq $index 0) }} (Latest){{ end }} + {{ .Title }}{{ if (eq $index 0) }} (Latest){{ end }} {{ .Date.Format "2006-01-02" }} {{ if .Params.update }} From a47202ed56a39c8ec8bca4a1463abcd939f3c7c7 Mon Sep 17 00:00:00 2001 From: Andrew Barrett-Sprot Date: Sat, 24 Mar 2018 15:52:38 +0000 Subject: [PATCH 5/5] change bg color and bold the entire row - Use a class identifier for the row of the table --- layouts/partials/custom-header.html | 2 ++ layouts/updates/list.html | 4 ++-- static/css/theme-additions.css | 4 ++++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 layouts/partials/custom-header.html create mode 100644 static/css/theme-additions.css diff --git a/layouts/partials/custom-header.html b/layouts/partials/custom-header.html new file mode 100644 index 00000000..854d11e4 --- /dev/null +++ b/layouts/partials/custom-header.html @@ -0,0 +1,2 @@ + + diff --git a/layouts/updates/list.html b/layouts/updates/list.html index bbd60407..0689f723 100644 --- a/layouts/updates/list.html +++ b/layouts/updates/list.html @@ -10,8 +10,8 @@ Image Download {{ range $index, $_ := .Pages.ByDate.Reverse }} - - {{ .Title }}{{ if (eq $index 0) }} (Latest){{ end }} + + {{ .Title }} {{ .Date.Format "2006-01-02" }} {{ if .Params.update }} diff --git a/static/css/theme-additions.css b/static/css/theme-additions.css new file mode 100644 index 00000000..e6a13ecb --- /dev/null +++ b/static/css/theme-additions.css @@ -0,0 +1,4 @@ +.latest-row { + font-weight: bold; + background-color: #ffffee; +}