From e18c213e8c74aaba3e58c309d86ac7b4eccbd56d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 23 Sep 2023 10:18:31 +0200 Subject: [PATCH] theme: avoid id collisions between headings and theme #646 --- .../content/basics/generator/_index.en.md | 4 +- .../content/basics/migration/_index.en.md | 4 + .../content/basics/topbar/_index.pir.md | 2 +- .../layouts/partials/custom-header.html | 2 +- exampleSite/layouts/partials/menu-footer.html | 2 +- layouts/404.html | 6 +- layouts/partials/body.searchpage.html | 6 +- layouts/partials/footer.html | 4 +- layouts/partials/header.html | 10 +- layouts/partials/logo.html | 22 +- layouts/partials/menu.html | 46 +-- layouts/partials/search.html | 4 +- layouts/partials/shortcodes/expand.html | 6 +- layouts/partials/shortcodes/image.html | 4 +- layouts/partials/shortcodes/openapi.html | 2 +- layouts/partials/stylesheet.html | 2 +- static/css/auto-complete.css | 6 +- static/css/format-print.css | 66 ++-- static/css/ie.css | 148 ++++---- static/css/tags.css | 8 +- static/css/theme-learn.css | 8 +- static/css/theme-neon.css | 84 ++--- static/css/theme-relearn-bright.css | 8 +- static/css/theme-zen-dark.css | 8 +- static/css/theme-zen-light.css | 8 +- static/css/theme.css | 356 +++++++++--------- static/css/variant.css | 104 ++--- static/js/search.js | 14 +- static/js/theme.js | 46 +-- static/js/variant.js | 28 +- 30 files changed, 511 insertions(+), 507 deletions(-) diff --git a/exampleSite/content/basics/generator/_index.en.md b/exampleSite/content/basics/generator/_index.en.md index 8b92e6ee96..ae0d47418e 100644 --- a/exampleSite/content/basics/generator/_index.en.md +++ b/exampleSite/content/basics/generator/_index.en.md @@ -26,11 +26,11 @@ Eg. if your new variants file is named `theme-my-custom-variant.css`, you have t {{% button style="secondary" icon="download" href="javascript:window.variants&&variants.getStylesheet();this.blur();" %}}Download variant{{% /button %}} {{% button style="warning" icon="trash" href="javascript:window.variants&&variants.resetVariant();this.blur();" %}}Reset variant{{% /button %}} -
Graph
+
Graph
{{% button style="secondary" icon="download" href="javascript:window.variants&&variants.getStylesheet();this.blur();" %}}Download variant{{% /button %}} {{% button style="warning" icon="trash" href="javascript:window.variants&&variants.resetVariant();this.blur();" %}}Reset variant{{% /button %}} diff --git a/exampleSite/content/basics/migration/_index.en.md b/exampleSite/content/basics/migration/_index.en.md index 65eebff537..2a1c3594ce 100644 --- a/exampleSite/content/basics/migration/_index.en.md +++ b/exampleSite/content/basics/migration/_index.en.md @@ -20,6 +20,10 @@ This document shows you what's new in the latest release. For a detailed list of ## 5.22.0 (2023-09-21) {#5220} +- {{% badge style="note" title=" " %}}Change{{% /badge %}} This release fixes an issue where in unfortunate conditions DOM ids generated by Hugo may collide with DOM ids set by the theme. To avoid this, all theme DOM ids are now prefixed with `R-`. + + If you haven't modified anything, everything is fine. Otherwise you have to check your custom CSS rules and JavaScript code. + - {{% badge style="note" title=" " %}}Change{{% /badge %}} You can now have structural sections in the hierarchical menu without generating a page for it. This can come in handy, if content for such a section page doesn't make much sense to you. See [the documentation]({{% relref "cont/pages#disable-section-pages" %}}) for how to do this. diff --git a/exampleSite/content/basics/topbar/_index.pir.md b/exampleSite/content/basics/topbar/_index.pir.md index 6709585eb2..048fedf7f5 100644 --- a/exampleSite/content/basics/topbar/_index.pir.md +++ b/exampleSite/content/basics/topbar/_index.pir.md @@ -1,5 +1,5 @@ +++ -title = "Topbarrr modificat'n" +title = "Topbarrr Modificat'n" weight = 27 +++ {{< piratify >}} \ No newline at end of file diff --git a/exampleSite/layouts/partials/custom-header.html b/exampleSite/layouts/partials/custom-header.html index a106bd1913..7d3d4fab6a 100644 --- a/exampleSite/layouts/partials/custom-header.html +++ b/exampleSite/layouts/partials/custom-header.html @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/exampleSite/layouts/partials/menu-footer.html b/exampleSite/layouts/partials/menu-footer.html index 46ed8d2ddf..4ffbe01022 100644 --- a/exampleSite/layouts/partials/menu-footer.html +++ b/exampleSite/layouts/partials/menu-footer.html @@ -4,7 +4,7 @@ diff --git a/layouts/partials/header.html b/layouts/partials/header.html index e9fb8008e1..73d11b0064 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -66,9 +66,9 @@ {{- partial "custom-header.html" . }} -
-
-