Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thegeeklab/hugo-geekdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Kaussow <mail@thegeeklab.de>2022-05-31 15:14:01 +0300
committerGitHub <noreply@github.com>2022-05-31 15:14:01 +0300
commit6545ceb24df520e877bf1de9f96ce5cfe47b8e72 (patch)
tree02a7a56321733673900f5fd189a0b83cf38ae6e3 /exampleSite
parent33ea5c37a9d6ac063a77071db9c50cfdef3f97ba (diff)
feat: add option geekdocDarkModeCode to enforce dark codeblocks (#429)v0.32.0
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/content/en/usage/configuration.md6
-rw-r--r--exampleSite/static/custom.css.example4
2 files changed, 8 insertions, 2 deletions
diff --git a/exampleSite/content/en/usage/configuration.md b/exampleSite/content/en/usage/configuration.md
index 8d497e0..3b16af7 100644
--- a/exampleSite/content/en/usage/configuration.md
+++ b/exampleSite/content/en/usage/configuration.md
@@ -106,6 +106,9 @@ enableRobotsTXT = true
# bright spots while using the dark mode.
geekdocDarkModeDim = false
+ # (Optional, default false) Enforce code blocks to always use the dark color theme.
+ geekdocDarkModeCode = false
+
# (Optional, default true) Display a "Back to top" link in the site footer.
geekdocBackToTop = true
@@ -225,6 +228,9 @@ params:
# bright spots while using the dark mode.
geekdocDarkModeDim: false
+ # (Optional, default false) Enforce code blocks to always use the dark color theme.
+ geekdocDarkModeCode: false
+
# (Optional, default true) Display a "Back to top" link in the site footer.
geekdocBackToTop: true
diff --git a/exampleSite/static/custom.css.example b/exampleSite/static/custom.css.example
index 341a121..2c6c213 100644
--- a/exampleSite/static/custom.css.example
+++ b/exampleSite/static/custom.css.example
@@ -6,7 +6,7 @@
/* Light mode theming */
:root,
-:root[color-mode="light"] {
+:root[color-theme="light"] {
--header-background: #4ec58a;
--header-font-color: #ffffff;
@@ -76,7 +76,7 @@
}
/* Dark mode theming */
-:root[color-mode="dark"] {
+:root[color-theme="dark"] {
--header-background: #4ec58a;
--header-font-color: #ffffff;