From afc4681a01b5d7b0d2c607fa7641500eeda4ece7 Mon Sep 17 00:00:00 2001 From: minoplhy Date: Sat, 9 Mar 2024 17:59:51 +0700 Subject: [PATCH] hugo-bearblog : add _index.md for blog and add random color gimmick --- layouts/_default/list.html | 7 ++++++- layouts/partials/random_color.html | 27 +++++++++++++++++++++++++++ layouts/partials/style.html | 4 ++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 layouts/partials/random_color.html diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 90cbee5..4243521 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -6,6 +6,8 @@ Remove filter {{ end }} + + {{ .Content }} + + {{- partial "random_color.html" -}} + {{ if .Data.Singular }} {{else}} diff --git a/layouts/partials/random_color.html b/layouts/partials/random_color.html new file mode 100644 index 0000000..18b8afb --- /dev/null +++ b/layouts/partials/random_color.html @@ -0,0 +1,27 @@ + \ No newline at end of file diff --git a/layouts/partials/style.html b/layouts/partials/style.html index 882360f..9e16279 100644 --- a/layouts/partials/style.html +++ b/layouts/partials/style.html @@ -126,6 +126,10 @@ color: #8b6fcb; } + .blog-link { + text-decoration: none; + } + .dark-mode { background-color: #333; color: #ddd;