From 442a4f4832e6bb6f450bfc981db7958be4f8cdc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sun, 20 Feb 2022 23:58:16 +0100 Subject: [PATCH] variant: move scripts to own file #188 --- .../content/basics/generator/_index.en.md | 288 +------------ layouts/partials/footer.html | 2 +- layouts/partials/menu.html | 8 +- layouts/partials/stylesheet.html | 64 +-- static/css/theme-neon.css | 2 +- static/css/theme-relearn-dark.css | 2 +- static/css/theme-relearn-light.css | 2 +- static/css/theme.css | 12 +- static/css/variant.css | 6 +- static/js/{relearn.js => theme.js} | 0 static/js/variant.js | 381 ++++++++++++++++++ 11 files changed, 408 insertions(+), 359 deletions(-) rename static/js/{relearn.js => theme.js} (100%) create mode 100644 static/js/variant.js diff --git a/exampleSite/content/basics/generator/_index.en.md b/exampleSite/content/basics/generator/_index.en.md index 4facb42129..c8b4d1e985 100644 --- a/exampleSite/content/basics/generator/_index.en.md +++ b/exampleSite/content/basics/generator/_index.en.md @@ -18,292 +18,8 @@ This is best seen in the `neon` variant with the differnet headings colors. Ther
Graph
-Download color variant +Download color variant diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index aa9e4c6110..044c86c149 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -41,7 +41,7 @@ window.T_Copy_link_to_clipboard = '{{ T "Copy-link-to-clipboard" | safeJS }}'; window.T_Link_copied_to_clipboard = '{{ T "Link-copied-to-clipboard" | safeJS }}'; - + {{- partial "custom-footer.html" . }} diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 7ed997b5bc..4661be6291 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -65,7 +65,7 @@