From a0912dc5434a2d27bd2af3c0da3b1a20c8f068e2 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 20 Mar 2024 17:29:12 +0200 Subject: [PATCH 1/2] masthead.html: add `rel="noopener" target="_blank"` (#39805) --- site/layouts/partials/home/masthead.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/layouts/partials/home/masthead.html b/site/layouts/partials/home/masthead.html index bee1baee85..d4ec0c0264 100644 --- a/site/layouts/partials/home/masthead.html +++ b/site/layouts/partials/home/masthead.html @@ -1,7 +1,7 @@
- + New! From d1636a7540ae935ddd27462333c2bdf5a6eadef0 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 20 Mar 2024 19:05:43 +0200 Subject: [PATCH 2/2] Move theme toggler to a partial (#39807) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --------- Co-authored-by: Julien Déramond --- site/layouts/_default/examples.html | 40 +++++------------------- site/layouts/partials/docs-navbar.html | 34 +------------------- site/layouts/partials/theme-toggler.html | 34 ++++++++++++++++++++ 3 files changed, 42 insertions(+), 66 deletions(-) create mode 100644 site/layouts/partials/theme-toggler.html diff --git a/site/layouts/_default/examples.html b/site/layouts/_default/examples.html index d381a56df8..1c31c5aea9 100644 --- a/site/layouts/_default/examples.html +++ b/site/layouts/_default/examples.html @@ -94,12 +94,17 @@ z-index: 1500; } + .bd-mode-toggle .bi { + width: 1em; + height: 1em; + } + .bd-mode-toggle .dropdown-menu .active .bi { display: block !important; } - {{ range .Page.Params.extra_css }} + {{ range .Page.Params.extra_css -}} {{ "" | safeHTML }} {{- end }} @@ -108,38 +113,7 @@ {{ partial "examples/icons" . }} {{ .Content }} diff --git a/site/layouts/partials/docs-navbar.html b/site/layouts/partials/docs-navbar.html index 10f3fba4c9..3576ef4a48 100644 --- a/site/layouts/partials/docs-navbar.html +++ b/site/layouts/partials/docs-navbar.html @@ -83,39 +83,7 @@
diff --git a/site/layouts/partials/theme-toggler.html b/site/layouts/partials/theme-toggler.html new file mode 100644 index 0000000000..05de756fd7 --- /dev/null +++ b/site/layouts/partials/theme-toggler.html @@ -0,0 +1,34 @@ +{{- $isExamples := eq .Layout "examples" -}} + +