From 3a64fb5f384b19503bc8538b50c19e85c6a5b7c1 Mon Sep 17 00:00:00 2001 From: J S Date: Mon, 13 Nov 2023 19:49:36 -0500 Subject: [PATCH] feat[dark]: Fixed dark-mode selector I corrected the dark-mode selector so that it appears on each page. I also corrected the ugly tag boxes. --- layouts/_default/baseof.html | 2 +- layouts/_default/category.html | 1 + layouts/_default/index.json | 15 --------------- layouts/index.html | 1 + layouts/partials/footer.html | 6 ++---- static/css/style.css | 3 --- 6 files changed, 5 insertions(+), 23 deletions(-) delete mode 100644 layouts/_default/index.json diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 35a076f..33ae268 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -15,9 +15,9 @@ {{ end }} + {{ block "footer" . }} - {{ end }} diff --git a/layouts/_default/index.json b/layouts/_default/index.json deleted file mode 100644 index 1979cab..0000000 --- a/layouts/_default/index.json +++ /dev/null @@ -1,15 +0,0 @@ -{{/* layouts/_default/index.json */}} -{{- $index := slice -}} -{{- range where .Site.RegularPages.ByDate.Reverse "Type" "not in" (slice "page" "json") -}} - {{ if .Params.dateCreated }} - {{ $.Scratch.Set "date" (.Params.dateCreated) }} - {{ else }} - {{- if isset site.Params "date_format" -}} - {{- $.Scratch.Set "date" (.Date.Format site.Params.date_format) -}} - {{- else -}} - {{- $.Scratch.Set "date" (.Date.Format "2006-01-02") -}} - {{- end -}} - {{ end }} - {{- $index = $index | append (dict "title" ( .Title | plainify ) "permalink" .Permalink "section" (i18n (.Section | title)) "tags" (apply .Params.tags "i18n" "." ) "categories" (apply .Params.categories "i18n" "." ) "summary" (.Params.summary | markdownify | htmlUnescape | plainify) "date" ($.Scratch.Get "date") ) -}} -{{- end -}} -{{- $index | jsonify -}} diff --git a/layouts/index.html b/layouts/index.html index 655b222..f9cea5d 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -43,6 +43,7 @@

View all posts

View all categories

View all tags

+ diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 186d51a..8cc7640 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,4 @@ diff --git a/static/css/style.css b/static/css/style.css index 7f3fcff..79014cd 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -51,9 +51,6 @@ white-space: pre-wrap; .taglist { -border: solid; -border-weight: 2pt; -padding: 4pt; }