diff --git a/assets/scss/common/_icons.scss b/assets/scss/common/_icons.scss index 146859da7..da6f04c00 100644 --- a/assets/scss/common/_icons.scss +++ b/assets/scss/common/_icons.scss @@ -1,25 +1,25 @@ // scss-docs-start icons -$form-check-input-checked-bg-image: url("/icons/form-check-input-checked-bg-image.svg") !default; -$form-check-radio-checked-bg-image: url("/icons/form-check-radio-checked-bg-image.svg") !default; -$form-check-input-indeterminate-bg-image: url("/icons/form-check-input-indeterminate-bg-image.svg") !default; -$form-switch-bg-image: url("/icons/form-switch-bg-image.svg") !default; -$form-switch-bg-image-dark: url("/icons/form-switch-bg-image-dark.svg") !default; -$form-switch-focus-bg-image: url("/icons/form-switch-focus-bg-image.svg") !default; -$form-switch-checked-bg-image: url("/icons/form-switch-checked-bg-image.svg") !default; -$form-select-indicator: url("/icons/form-select-indicator.svg") !default; -$form-select-indicator-dark: url("/icons/form-select-indicator-dark.svg") !default; -$form-feedback-icon-valid: url("/icons/form-feedback-icon-valid.svg") !default; -$form-feedback-icon-invalid: url("/icons/form-feedback-icon-invalid.svg") !default; -$navbar-light-toggler-icon-bg: url("/icons/navbar-light-toggler-icon-bg.svg") !default; -$navbar-dark-toggler-icon-bg: url("/icons/navbar-dark-toggler-icon-bg.svg") !default; -$accordion-button-icon: url("/icons/accordion-button-icon.svg") !default; -$accordion-button-icon-dark: url("/icons/accordion-button-icon-dark.svg") !default; -$accordion-button-active-icon: url("/icons/accordion-button-active-icon.svg") !default; -$accordion-button-active-icon-dark: url("/icons/accordion-button-active-icon-dark.svg") !default; -$carousel-control-prev-icon-bg: url("/icons/carousel-control-prev-icon-bg.svg") !default; -$carousel-control-next-icon-bg: url("/icons/carousel-control-next-icon-bg.svg") !default; -$btn-close-bg: url("/icons/btn-close-bg.svg") !default; -$btn-toggle: url("/icons/btn-toggle.svg") !default; -$btn-toggle-dark: url("/icons/btn-toggle-dark.svg") !default; +$form-check-input-checked-bg-image: url("#{$base-url}icons/form-check-input-checked-bg-image.svg") !default; +$form-check-radio-checked-bg-image: url("#{$base-url}icons/form-check-radio-checked-bg-image.svg") !default; +$form-check-input-indeterminate-bg-image: url("#{$base-url}icons/form-check-input-indeterminate-bg-image.svg") !default; +$form-switch-bg-image: url("#{$base-url}icons/form-switch-bg-image.svg") !default; +$form-switch-bg-image-dark: url("#{$base-url}icons/form-switch-bg-image-dark.svg") !default; +$form-switch-focus-bg-image: url("#{$base-url}icons/form-switch-focus-bg-image.svg") !default; +$form-switch-checked-bg-image: url("#{$base-url}icons/form-switch-checked-bg-image.svg") !default; +$form-select-indicator: url("#{$base-url}icons/form-select-indicator.svg") !default; +$form-select-indicator-dark: url("#{$base-url}icons/form-select-indicator-dark.svg") !default; +$form-feedback-icon-valid: url("#{$base-url}icons/form-feedback-icon-valid.svg") !default; +$form-feedback-icon-invalid: url("#{$base-url}icons/form-feedback-icon-invalid.svg") !default; +$navbar-light-toggler-icon-bg: url("#{$base-url}icons/navbar-light-toggler-icon-bg.svg") !default; +$navbar-dark-toggler-icon-bg: url("#{$base-url}icons/navbar-dark-toggler-icon-bg.svg") !default; +$accordion-button-icon: url("#{$base-url}icons/accordion-button-icon.svg") !default; +$accordion-button-icon-dark: url("#{$base-url}icons/accordion-button-icon-dark.svg") !default; +$accordion-button-active-icon: url("#{$base-url}icons/accordion-button-active-icon.svg") !default; +$accordion-button-active-icon-dark: url("#{$base-url}icons/accordion-button-active-icon-dark.svg") !default; +$carousel-control-prev-icon-bg: url("#{$base-url}icons/carousel-control-prev-icon-bg.svg") !default; +$carousel-control-next-icon-bg: url("#{$base-url}icons/carousel-control-next-icon-bg.svg") !default; +$btn-close-bg: url("#{$base-url}icons/btn-close-bg.svg") !default; +$btn-toggle: url("#{$base-url}icons/btn-toggle.svg") !default; +$btn-toggle-dark: url("#{$base-url}icons/btn-toggle-dark.svg") !default; // scss-docs-end icons diff --git a/assets/scss/common/_variables-dart.scss b/assets/scss/common/_variables-dart.scss index 976c55166..bef19bfb7 100644 --- a/assets/scss/common/_variables-dart.scss +++ b/assets/scss/common/_variables-dart.scss @@ -5,6 +5,8 @@ $enable-important-utilities: true !default; // Remove the border from the focused navigation toggler $navbar-toggler-focus-width: 0 !default; +$base-url: h.$base-url; + $font-family-sans-serif: h.$theme-font, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default; $font-size-base: h.$font-size-base !default; $headings-font-weight: 600 !default; diff --git a/assets/scss/common/_variables.scss b/assets/scss/common/_variables.scss index 92bb338aa..093d06add 100644 --- a/assets/scss/common/_variables.scss +++ b/assets/scss/common/_variables.scss @@ -5,6 +5,8 @@ $enable-important-utilities: true !default; // Remove the border from the focused navigation toggler $navbar-toggler-focus-width: 0 !default; +$base-url: $base-url; + // scss-docs-start font $font-family-sans-serif: $theme-font, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default; $font-size-base: $font-size-base !default;; diff --git a/go.mod b/go.mod index 001422010..aa6ef95fa 100644 --- a/go.mod +++ b/go.mod @@ -9,8 +9,8 @@ require ( github.com/gethinode/mod-fontawesome v1.9.0 // indirect github.com/gethinode/mod-katex v1.1.0 // indirect github.com/gethinode/mod-leaflet v1.1.0 // indirect - github.com/gethinode/mod-lottie v1.5.2 // indirect - github.com/gethinode/mod-utils/v2 v2.3.5 // indirect + github.com/gethinode/mod-lottie v1.5.3 // indirect + github.com/gethinode/mod-utils/v2 v2.3.6 // indirect github.com/nextapps-de/flexsearch v0.0.0-20240110101704-4c3966709f85 // indirect github.com/twbs/bootstrap v5.3.3+incompatible // indirect ) diff --git a/go.sum b/go.sum index 640fa7ff0..44d82c0c1 100644 --- a/go.sum +++ b/go.sum @@ -178,6 +178,8 @@ github.com/gethinode/mod-lottie v1.5.1 h1:84ZmOTKJH75wsd/YjPaaBRkTeLnmRROv9iFlQV github.com/gethinode/mod-lottie v1.5.1/go.mod h1:z0Q6EADM7pN7gmhCzDx2VR4uG5mxn9qbsphtxjIkssY= github.com/gethinode/mod-lottie v1.5.2 h1:UvrNAQeD/97Q5fbv3uKIY48fY3IWJeLy/v206Gb0F6Y= github.com/gethinode/mod-lottie v1.5.2/go.mod h1:HM1pA85EiPO7RtNysw/a2ZzRqktO2WvB/KyWLOuynzg= +github.com/gethinode/mod-lottie v1.5.3 h1:fvCjCoZoCEhY2aou30oEsEo6N4tVSI0ijFyXS3wNib0= +github.com/gethinode/mod-lottie v1.5.3/go.mod h1:XHVMuPsuJIm9/Eb2ql4jsT49/BQqMlBiirQoty4uHAo= github.com/gethinode/mod-utils v1.0.0 h1:cqHm2xS5uDiJzRm1KfHaNbq6uMVDKLhQa8/BuTZ1nhY= github.com/gethinode/mod-utils v1.0.0/go.mod h1:ONJm3pHCq7nvaPNjusLZNCeCbhOhSBH4HVKHwK1FdYE= github.com/gethinode/mod-utils v1.0.1 h1:jhZGlGFHHL1f5HXbBMXfiZ2gCz4TVafAzjnRPTIBSEE= @@ -214,6 +216,8 @@ github.com/gethinode/mod-utils/v2 v2.3.4 h1:4OmUsLW7FyQL7vJhg/Iy9E7nFXWL955qCtsj github.com/gethinode/mod-utils/v2 v2.3.4/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY= github.com/gethinode/mod-utils/v2 v2.3.5 h1:r8V330xQkHTjzAFNCde1Kpz6fgidzmMRW82eIonUnOo= github.com/gethinode/mod-utils/v2 v2.3.5/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY= +github.com/gethinode/mod-utils/v2 v2.3.6 h1:Ta+WKc83sK9ZROKmUwS4pA32Qm0bQqoMmWHEOzDvZ5Y= +github.com/gethinode/mod-utils/v2 v2.3.6/go.mod h1:GTYeknoLujNjfDxI+V9Dcug26CYJSTJ0B/U2dagw9oY= github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 h1:H/qVR5O4BXjRjD+5PZB+r4ug2BSJ2Of4RtwOntd+OKo= github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3/go.mod h1:5GdMfPAXzbA2gXBqTjC6l27kioSYzHlqDMh0+wyx7sU= github.com/nextapps-de/flexsearch v0.0.0-20240108021025-afd75f742f22 h1:re7L8FxbXQpnX8BgzkdUnDpsUmloGNyLmiy2ZCln8pg= diff --git a/layouts/404.html b/layouts/404.html index 26d01cd72..6301a3236 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,4 +1,5 @@ {{ define "main" }} + {{ $base := partial "utilities/GetStaticURL" (dict "url" "/") }}
{{ $year }}
{{ $.Scratch.Set "lastYear" $year }} {{ end }} - {{ if .Draft }}{{ T "draft" | upper }}: {{ end }}{{ .Title | .Page.RenderString }} + {{ if .Draft }}{{ T "draft" | upper }}: {{ end }}{{ .Title | .Page.RenderString }}