From 47f0fac2debe5b14943659fe9253c77075a42b74 Mon Sep 17 00:00:00 2001 From: Phil Winder Date: Wed, 6 Mar 2024 16:05:14 +0000 Subject: [PATCH] fix minor dark issue --- content/helix/_index.md | 2 +- hugo.yaml | 1 - hugo_stats.json | 10 ++++++++++ layouts/index.html | 12 +++++++----- layouts/shortcodes/index/cta-left.html | 2 +- layouts/shortcodes/index/cta-right.html | 2 +- 6 files changed, 20 insertions(+), 9 deletions(-) diff --git a/content/helix/_index.md b/content/helix/_index.md index 0bd12cd..8b65f6f 100644 --- a/content/helix/_index.md +++ b/content/helix/_index.md @@ -1,6 +1,6 @@ --- title: Introduction to Helix -linkTitle: Documentation +linkTitle: Helix Documentation cascade: type: docs next: /helix/getting-started diff --git a/hugo.yaml b/hugo.yaml index f2e496a..8fb4f6b 100644 --- a/hugo.yaml +++ b/hugo.yaml @@ -27,7 +27,6 @@ module: hugoVersion: extended: true min: "0.112.0" - imports: - path: github.com/imfing/hextra mounts: diff --git a/hugo_stats.json b/hugo_stats.json index 77bd4aa..13dc109 100644 --- a/hugo_stats.json +++ b/hugo_stats.json @@ -20,6 +20,7 @@ "h3", "h4", "head", + "hr", "html", "iframe", "img", @@ -134,6 +135,9 @@ "contrast-more:underline", "copy-icon", "cursor-pointer", + "dark:[&_.cl]:text-gray-100", + "dark:[&_.highlight]:bg-gray-900", + "dark:[&_.highlight]:rounded-xl", "dark:before:bg-neutral-800", "dark:bg-black/60", "dark:bg-dark", @@ -168,9 +172,11 @@ "dark:text-gray-100", "dark:text-gray-300", "dark:text-gray-400", + "dark:text-gray-900", "dark:text-neutral-200", "dark:text-neutral-400", "dark:text-primary-600", + "dark:text-slate-100", "duration-200", "duration-75", "first:mt-0", @@ -178,6 +184,7 @@ "flex", "flex-auto", "flex-col", + "flexjustify-center", "flow-root", "focus:bg-white", "font-bold", @@ -204,6 +211,7 @@ "group/code", "group/copybtn", "grow", + "h-0", "h-16", "h-3.5", "h-4", @@ -291,6 +299,7 @@ "max-w-md", "max-w-screen-xl", "max-w-xl", + "max-xl:hidden", "mb-2", "mb-4", "mb-8", @@ -448,6 +457,7 @@ "text-left", "text-lg", "text-primary-800", + "text-slate-900", "text-sm", "text-xs", "theme-toggle", diff --git a/layouts/index.html b/layouts/index.html index 94f10a3..c9ac447 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,9 +1,11 @@ {{ define "main" }} -
-
-
- {{ .Content }} +
+ {{ partial "sidebar.html" (dict "context" . "disableSidebar" true) }} +
+
+
+ {{ .Content }} +
diff --git a/layouts/shortcodes/index/cta-left.html b/layouts/shortcodes/index/cta-left.html index 884c2ea..9ca0328 100644 --- a/layouts/shortcodes/index/cta-left.html +++ b/layouts/shortcodes/index/cta-left.html @@ -1,5 +1,5 @@
-

+

{{ .Get "title" | default .Page.Title }}

diff --git a/layouts/shortcodes/index/cta-right.html b/layouts/shortcodes/index/cta-right.html index cfae87c..b864860 100644 --- a/layouts/shortcodes/index/cta-right.html +++ b/layouts/shortcodes/index/cta-right.html @@ -1,5 +1,5 @@
-

+

{{ .Get "title" | default .Page.Title }}