diff --git a/starters/markdown-slides/config/_default/config.yaml b/starters/markdown-slides/config/_default/config.yaml index b0974a84..d8190b7b 100644 --- a/starters/markdown-slides/config/_default/config.yaml +++ b/starters/markdown-slides/config/_default/config.yaml @@ -5,7 +5,6 @@ title: Markdown Slides # Website name baseurl: 'https://example.com/' # Website URL -copyright: '' # Footer text, e.g. '© {year} Me' ############################ ## LANGUAGE diff --git a/starters/markdown-slides/config/_default/params.yaml b/starters/markdown-slides/config/_default/params.yaml index 5e3437a3..0ea059a7 100644 --- a/starters/markdown-slides/config/_default/params.yaml +++ b/starters/markdown-slides/config/_default/params.yaml @@ -5,23 +5,37 @@ # Appearance -theme: minimal -day_night: true -font: '' -font_size: L +appearance: + theme_day: + theme_night: + font: + font_size: L # SEO -site_type: Person -local_business_type: '' -org_name: '' -description: '' -twitter: '' +seo: + site_type: Person + local_business_type: '' + org_name: '' + description: '' + twitter: '' # Site header -main_menu: - enable: false +header: + navbar: + enable: false + +# Site footer + +footer: + copyright: + notice: '© {year} Me. This work is licensed under {license}' + license: + enable: true + allow_derivatives: false + share_alike: true + allow_commercial: false # Localization @@ -31,13 +45,9 @@ locale: # Site features -privacy_pack: false -copyright_license: - enable: false - allow_derivatives: false - share_alike: true - allow_commercial: false - notice: 'This work is licensed under {license}' +features: + privacy_pack: false + marketing: google_analytics: '' google_tag_manager: '' diff --git a/starters/markdown-slides/content/slides/example/index.md b/starters/markdown-slides/content/slides/example/index.md index 6a726715..975170c8 100644 --- a/starters/markdown-slides/content/slides/example/index.md +++ b/starters/markdown-slides/content/slides/example/index.md @@ -79,7 +79,7 @@ Make content appear incrementally Press `Space` to play! -{{% fragment %}} _One_ {{% /fragment %}} +{{% fragment %}} One {{% /fragment %}} {{% fragment %}} **Two** {{% /fragment %}} {{% fragment %}} Three {{% /fragment %}} @@ -129,14 +129,14 @@ Press the `S` key to view the speaker notes! --- -{{< slide background-image="boards.jpg" >}} +{{< slide background-image="boards.webp" >}} ## Custom Slide Customize the slide style and background ```markdown -{{}} +{{}} {{}} {{}} ``` diff --git a/wowchemy/assets/scss/main.scss b/wowchemy/assets/scss/main.scss index c50e691e..33116d7d 100644 --- a/wowchemy/assets/scss/main.scss +++ b/wowchemy/assets/scss/main.scss @@ -24,6 +24,7 @@ $sta-link-decoration: {{ $scr.Get "link_decoration" }}; $sta-dark-link: {{ $scr.Get "dark_link" }}; $sta-dark-link-hover: {{ $scr.Get "dark_link_hover" }}; +$sta-dark-link-decoration: {{ $scr.Get "dark_link_decoration" }}; $sta-menu-primary: {{ $scr.Get "menu_primary" }}; $sta-menu-text: {{ $scr.Get "menu_text" }}; diff --git a/wowchemy/assets/scss/wowchemy/elements/_content.scss b/wowchemy/assets/scss/wowchemy/elements/_content.scss index ba275661..355221fe 100644 --- a/wowchemy/assets/scss/wowchemy/elements/_content.scss +++ b/wowchemy/assets/scss/wowchemy/elements/_content.scss @@ -119,6 +119,13 @@ } } +.dark .article-style { + // Underline links if they are a similar color to the body text. + a { + text-decoration: $sta-dark-link-decoration; + } +} + .article-metadata { margin-bottom: 15px; overflow: hidden; diff --git a/wowchemy/data/themes/1950s.toml b/wowchemy/data/themes/1950s.toml index 0c6a0c83..3f90a907 100644 --- a/wowchemy/data/themes/1950s.toml +++ b/wowchemy/data/themes/1950s.toml @@ -1,21 +1,17 @@ # Theme metadata name = "1950s" -# Is theme light or dark? -light = true +[light] + # Primary + primary = "#EF525B" -# Primary -primary = "#EF525B" + # Menu + menu_primary = "#24C2CB" + menu_text = "#fff" + menu_text_active = "#00828B" + menu_title = "#fff" -# Menu -menu_primary = "#24C2CB" -menu_text = "#fff" -menu_text_active = "#00828B" -menu_title = "#fff" - -# Backgrounds -background = "#EAE7D6" -home_section_odd = "#EAE7D6" -home_section_even = "#EAE7D6" - -font = "rose" + # Backgrounds + background = "#EAE7D6" + home_section_odd = "#EAE7D6" + home_section_even = "#EAE7D6" diff --git a/wowchemy/data/themes/apogee.toml b/wowchemy/data/themes/apogee.toml index 211e6485..b6b3df5a 100644 --- a/wowchemy/data/themes/apogee.toml +++ b/wowchemy/data/themes/apogee.toml @@ -1,18 +1,16 @@ # Theme metadata name = "Apogee" -# Is theme light or dark? -light = false +[dark] + # Primary + primary = "#EAF04E" -# Primary -primary = "#EAF04E" + # Menu + menu_primary = "#312450" + menu_text = "#F2BE4E" + menu_text_active = "#FFE1A0" + menu_title = "#E0A526" -# Menu -menu_primary = "#312450" -menu_text = "#F2BE4E" -menu_text_active = "#FFE1A0" -menu_title = "#E0A526" - -# Home sections -home_section_odd = "#5e42a6" -home_section_even = "#5e42a6" + # Home sections + home_section_odd = "#5e42a6" + home_section_even = "#5e42a6" diff --git a/wowchemy/data/themes/coffee.toml b/wowchemy/data/themes/coffee.toml index cdfe5612..ef2948f8 100644 --- a/wowchemy/data/themes/coffee.toml +++ b/wowchemy/data/themes/coffee.toml @@ -1,21 +1,17 @@ # Theme metadata name = "Coffee" -# Is theme light or dark? -light = true +[light] + # Primary + primary = "#795548" -# Primary -primary = "#795548" + # Menu + menu_primary = "#795548" + menu_text = "rgba(255,255,255,0.6)" + menu_text_active = "rgba(255,255,255,1)" + menu_title = "#fff" -# Menu -menu_primary = "#795548" -menu_text = "rgba(255,255,255,0.6)" -menu_text_active = "rgba(255,255,255,1)" -menu_title = "#fff" - -# Backgrounds -background = "hsla(16, 24%, 85%, 1)" -home_section_odd = "hsla(16, 24%, 85%, 1)" -home_section_even = "hsla(16, 24%, 80%, 1)" - -font = "rose" + # Backgrounds + background = "hsla(16, 24%, 85%, 1)" + home_section_odd = "hsla(16, 24%, 85%, 1)" + home_section_even = "hsla(16, 24%, 80%, 1)" diff --git a/wowchemy/data/themes/cyberpunk.toml b/wowchemy/data/themes/cyberpunk.toml index df204e52..2ef11a6f 100644 --- a/wowchemy/data/themes/cyberpunk.toml +++ b/wowchemy/data/themes/cyberpunk.toml @@ -1,19 +1,20 @@ # Theme metadata name = "Cyberpunk" -# Is theme light or dark? -is_light = false +[light] + # Primary + primary = "rgb(255, 0, 60)" -# Primary -primary = "rgb(255, 0, 60)" - -# Menu -menu_primary = "#fcee0a" -menu_text = "#000" -menu_text_active = "rgb(255, 0, 60)" -menu_title = "#000" + # Menu + menu_primary = "#fcee0a" + menu_text = "#000" + menu_text_active = "rgb(255, 0, 60)" + menu_title = "#000" [dark] + # Primary + primary = "rgb(255, 0, 60)" + # Menu menu_primary = "#fcee0a" menu_text = "#000" diff --git a/wowchemy/data/themes/dark.toml b/wowchemy/data/themes/dark.toml index e5f5f788..d469f0ca 100644 --- a/wowchemy/data/themes/dark.toml +++ b/wowchemy/data/themes/dark.toml @@ -1,18 +1,16 @@ # Theme metadata name = "Dark" -# Is theme light or dark? -light = false +[dark] + # Primary + primary = "hsl(339, 90%, 68%)" -# Primary -primary = "hsl(339, 90%, 68%)" + # Menu + menu_primary = "rgb(20, 22, 34)" + menu_text = "rgba(255,255,255,0.6)" + menu_text_active = "rgba(255,255,255,1)" + menu_title = "#fff" -# Menu -menu_primary = "rgb(20, 22, 34)" -menu_text = "rgba(255,255,255,0.6)" -menu_text_active = "rgba(255,255,255,1)" -menu_title = "#fff" - -# Home sections -home_section_odd = "hsla(231, 15%, 18%, 1)" -home_section_even = "hsla(231, 15%, 16%, 1)" + # Home sections + home_section_odd = "hsla(231, 15%, 18%, 1)" + home_section_even = "hsla(231, 15%, 16%, 1)" diff --git a/wowchemy/data/themes/earth.toml b/wowchemy/data/themes/earth.toml index 60a1dcb3..b66d4474 100644 --- a/wowchemy/data/themes/earth.toml +++ b/wowchemy/data/themes/earth.toml @@ -1,25 +1,21 @@ # Theme metadata name = "Earth" -# Is theme light or dark? -is_light = true +[light] + # Primary + primary = "#707070" -# Primary -primary = "#707070" + # Menu + menu_primary = "#f6eee9" + menu_text = "#000" + menu_text_active = "#000" + menu_title = "#000" -# Menu -menu_primary = "#f6eee9" -menu_text = "#000" -menu_text_active = "#000" -menu_title = "#000" + # Links + link = "#707070" + link_hover = "#000" + link_decoration = "underline" -# Links -link = "#707070" -link_hover = "#000" -link_decoration = "underline" - -# Home sections -home_section_odd = "#f9f7f6" -home_section_even = "#ffffff" - -font = "rose" + # Home sections + home_section_odd = "#f9f7f6" + home_section_even = "#ffffff" diff --git a/wowchemy/data/themes/forest.toml b/wowchemy/data/themes/forest.toml index 2a78e806..e380429b 100644 --- a/wowchemy/data/themes/forest.toml +++ b/wowchemy/data/themes/forest.toml @@ -1,18 +1,16 @@ # Theme metadata name = "Forest" -# Is theme light or dark? -light = true +[light] + # Primary + primary = "#4caf50" -# Primary -primary = "#4caf50" + # Menu + menu_primary = "#4caf50" + menu_text = "#fff" + menu_text_active = "#1b5e20" + menu_title = "#fff" -# Menu -menu_primary = "#4caf50" -menu_text = "#fff" -menu_text_active = "#1b5e20" -menu_title = "#fff" - -# Home sections -home_section_odd = "rgb(255, 255, 255)" -home_section_even = "rgb(247, 247, 247)" + # Home sections + home_section_odd = "rgb(255, 255, 255)" + home_section_even = "rgb(247, 247, 247)" diff --git a/wowchemy/data/themes/minimal.toml b/wowchemy/data/themes/minimal.toml index 46c7d570..9c214f54 100644 --- a/wowchemy/data/themes/minimal.toml +++ b/wowchemy/data/themes/minimal.toml @@ -1,22 +1,23 @@ # Theme metadata name = "Minimal" -# Is theme light or dark? -light = true +[light] + # Primary + primary = "#1565c0" -# Primary -primary = "#1565c0" + # Menu + menu_primary = "#fff" + menu_text = "#34495e" + menu_text_active = "#2962ff" + menu_title = "#2b2b2b" -# Menu -menu_primary = "#fff" -menu_text = "#34495e" -menu_text_active = "#2962ff" -menu_title = "#2b2b2b" - -# Home sections -home_section_odd = "rgb(255, 255, 255)" -home_section_even = "rgb(247, 247, 247)" + # Home sections + home_section_odd = "rgb(255, 255, 255)" + home_section_even = "rgb(247, 247, 247)" [dark] + # Primary + primary = "#bbdefb" + link = "#bbdefb" link_hover = "#bbdefb" diff --git a/wowchemy/data/themes/mr_robot.toml b/wowchemy/data/themes/mr_robot.toml index 0a0cf79c..f27cee98 100644 --- a/wowchemy/data/themes/mr_robot.toml +++ b/wowchemy/data/themes/mr_robot.toml @@ -1,18 +1,16 @@ # Theme metadata name = "Mr Robot" -# Is theme light or dark? -light = false +[dark] + # Primary + primary = "rgb(0, 136, 204)" -# Primary -primary = "rgb(0, 136, 204)" + # Menu + menu_primary = "rgb(33, 37, 41)" + menu_text = "rgb(0, 136, 204)" + menu_text_active = "rgba(255,255,255,1)" + menu_title = "rgb(153, 153, 153)" -# Menu -menu_primary = "rgb(33, 37, 41)" -menu_text = "rgb(0, 136, 204)" -menu_text_active = "rgba(255,255,255,1)" -menu_title = "rgb(153, 153, 153)" - -# Home sections -home_section_odd = "rgb(29, 33, 39)" -home_section_even = "rgb(29, 33, 39)" + # Home sections + home_section_odd = "rgb(29, 33, 39)" + home_section_even = "rgb(29, 33, 39)" diff --git a/wowchemy/data/themes/ocean.toml b/wowchemy/data/themes/ocean.toml index ccbb04cb..90fd9001 100644 --- a/wowchemy/data/themes/ocean.toml +++ b/wowchemy/data/themes/ocean.toml @@ -1,18 +1,16 @@ # Theme metadata name = "Ocean" -# Is theme light or dark? -light = true +[light] + # Primary + primary = "#3f51b5" -# Primary -primary = "#3f51b5" + # Menu + menu_primary = "#3f51b5" # Material 500 + menu_text = "#fff" + menu_text_active = "#ffeb3b" # Material Complemantary 500 + menu_title = "#fff" -# Menu -menu_primary = "#3f51b5" # Material 500 -menu_text = "#fff" -menu_text_active = "#ffeb3b" # Material Complemantary 500 -menu_title = "#fff" - -# Home sections -home_section_odd = "rgb(255, 255, 255)" -home_section_even = "rgb(247, 247, 247)" + # Home sections + home_section_odd = "rgb(255, 255, 255)" + home_section_even = "rgb(247, 247, 247)" diff --git a/wowchemy/data/themes/rose.toml b/wowchemy/data/themes/rose.toml index 24d9dbcf..51ec928d 100644 --- a/wowchemy/data/themes/rose.toml +++ b/wowchemy/data/themes/rose.toml @@ -1,18 +1,16 @@ # Theme metadata name = "Rose" -# Is theme light or dark? -light = true +[light] + # Primary + primary = "rgb(251, 191, 183)" -# Primary -primary = "rgb(251, 191, 183)" + # Menu + menu_primary = "rgb(247, 247, 247)" + menu_text = "#000" + menu_text_active = "rgb(25, 25, 25)" + menu_title = "#000" -# Menu -menu_primary = "rgb(247, 247, 247)" -menu_text = "#000" -menu_text_active = "rgb(25, 25, 25)" -menu_title = "#000" - -# Home sections -home_section_odd = "#FFF" -home_section_even = "rgb(234, 242, 250)" + # Home sections + home_section_odd = "#FFF" + home_section_even = "rgb(234, 242, 250)" diff --git a/wowchemy/data/themes/strawberry.toml b/wowchemy/data/themes/strawberry.toml index 4ba3f0cf..27e6cb8f 100644 --- a/wowchemy/data/themes/strawberry.toml +++ b/wowchemy/data/themes/strawberry.toml @@ -1,18 +1,16 @@ # Theme metadata name = "Strawberry" -# Is theme light or dark? -light = true +[light] + # Primary + primary = "#ff3860" -# Primary -primary = "#ff3860" + # Menu + menu_primary = "#ff3860" + menu_text = "#fff" + menu_text_active = "rgb(208, 255, 56)" + menu_title = "#fff" -# Menu -menu_primary = "#ff3860" -menu_text = "#fff" -menu_text_active = "rgb(208, 255, 56)" -menu_title = "#fff" - -# Home sections -home_section_odd = "#fff" -home_section_even = "#fff" + # Home sections + home_section_odd = "#fff" + home_section_even = "#fff" diff --git a/wowchemy/layouts/_default/baseof.html b/wowchemy/layouts/_default/baseof.html index b07bc3f6..63d26457 100644 --- a/wowchemy/layouts/_default/baseof.html +++ b/wowchemy/layouts/_default/baseof.html @@ -4,8 +4,8 @@ {{ partial "site_head" . }} -{{ $show_navbar := site.Params.main_menu.enable | default true }} -{{- $highlight_active_link := site.Params.main_menu.highlight_active_link | default true -}} +{{ $show_navbar := site.Params.header.navbar.enable | default true }} +{{- $highlight_active_link := site.Params.header.navbar.highlight_active_link | default true -}} {{/* Initialise Wowchemy. */}} @@ -13,7 +13,7 @@ {{ $js_license := $js_license | printf "%s/*! Copyright 2016-present George Cushen (https://georgecushen.com/) */\n" }} {{ $js_license := $js_license | printf "%s/*! License: https://github.com/wowchemy/wowchemy-hugo-themes/blob/main/LICENSE.md */\n" }} {{ $js_bundle_head := $js_license | resources.FromString "js/bundle-head.js" }} - {{ $wcDarkLightEnabled := site.Params.day_night | default false }} + {{ $wcDarkLightEnabled := (and site.Params.appearance.theme_day site.Params.appearance.theme_night) }} {{ $wcIsSiteThemeDark := not (.Scratch.Get "light") | default false }} {{ $js_params := dict "wcDarkLightEnabled" $wcDarkLightEnabled "wcIsSiteThemeDark" $wcIsSiteThemeDark }} {{ $js_bundle := resources.Get "js/wowchemy-init.js" | js.Build (dict "params" $js_params) }} diff --git a/wowchemy/layouts/partials/cookie_consent.html b/wowchemy/layouts/partials/cookie_consent.html index 3406716b..3d01bf54 100644 --- a/wowchemy/layouts/partials/cookie_consent.html +++ b/wowchemy/layouts/partials/cookie_consent.html @@ -1,4 +1,4 @@ -{{ if site.Params.privacy_pack }} +{{ if site.Params.features.privacy_pack }} {{ $scr := .Scratch }} {{ $js := site.Data.assets.js }} {{ $css := site.Data.assets.css }} diff --git a/wowchemy/layouts/partials/functions/get_author_name.html b/wowchemy/layouts/partials/functions/get_author_name.html index 5f90d5c8..7e3b7436 100644 --- a/wowchemy/layouts/partials/functions/get_author_name.html +++ b/wowchemy/layouts/partials/functions/get_author_name.html @@ -3,7 +3,7 @@ {{ $page := . }} {{/* Get publisher as fall back. */}} -{{ $publisher := site.Params.org_name | default site.Title }} +{{ $publisher := site.Params.seo.org_name | default site.Title }} {{ $author := "" }} {{ $author_username := "" }} diff --git a/wowchemy/layouts/partials/functions/parse_theme.html b/wowchemy/layouts/partials/functions/parse_theme.html index d2845298..ac2a3888 100644 --- a/wowchemy/layouts/partials/functions/parse_theme.html +++ b/wowchemy/layouts/partials/functions/parse_theme.html @@ -1,14 +1,37 @@ {{- $scr := .Scratch -}} {{/* Get name of site's Color Theme. Precedence: Params.yaml > Default (Minimal) */}} -{{- $theme_index := (site.Params.theme | lower | replaceRE "\\s" "_") | default "minimal" -}} -{{- if not (isset site.Data.themes $theme_index) -}} - {{- warnf "Theme `%s` not found at `data/themes/%s.toml`" site.Params.theme $theme_index -}} - {{- $theme_index = "minimal" -}} +{{- $theme_day_index := (site.Params.appearance.theme_day | lower | replaceRE "\\s" "_") | default "minimal" -}} +{{- $theme_night_index := (site.Params.appearance.theme_night | lower | replaceRE "\\s" "_") | default "minimal" -}} + +{{- if not (index (index site.Data.themes $theme_day_index) "light") -}} + {{- warnf "Theme `%s` not found at `data/themes/%s.toml`" site.Params.appearance.theme_day $theme_day_index -}} + {{- $theme_day_index = "minimal" -}} +{{ end }} + +{{- if not (index (index site.Data.themes $theme_night_index) "dark") -}} + {{- warnf "Theme `%s` not found at `data/themes/%s.toml`" site.Params.appearance.theme_night $theme_night_index -}} + {{- $theme_night_index = "minimal" -}} +{{ end }} + +{{ $theme_day := index (index site.Data.themes $theme_day_index) "light" }} +{{ $theme_night := index (index site.Data.themes $theme_night_index) "dark" }} + +{{/* Legacy support for `light` as boolean rather than map. */}} +{{ $light_is_map := reflect.IsMap $theme_day }} +{{ if not $light_is_map }} + {{ errorf "Upgrade your %s theme pack for v5.5. Convert `light = ...` to `[light]`." $theme_day_index }} +{{ end }} + +{{/* Default CSS body class. */}} +{{ if site.Params.appearance.theme_day }} + {{ $scr.Set "light" true }} +{{ else }} + {{ $scr.Set "light" false }} {{ end }} {{/* Get name of site's Font Set. Precedence: Params.yaml > Inherit from Color Theme > Default (Minimal) */}} -{{- $font_index := (site.Params.font | lower | replaceRE "\\s" "_") | default ((index site.Data.themes $theme_index).font | lower | replaceRE "\\s" "_") | default $theme_index -}} +{{- $font_index := (site.Params.appearance.font | lower | replaceRE "\\s" "_") | default ((index site.Data.themes $theme_day_index).font | lower | replaceRE "\\s" "_") | default $theme_day_index -}} {{- $font_index := cond (isset site.Data.fonts $font_index) $font_index "minimal" -}} {{/* Get Font Size. */}} @@ -30,49 +53,35 @@ {{/* Load Theme. */}} -{{ $theme := index site.Data.themes $theme_index }} -{{/* Legacy support for `light` as boolean rather than map. */}} -{{ $light_is_map := reflect.IsMap "light" }} -{{ $light_theme := dict }} -{{ if $light_is_map }} - {{ $scr.Set "light" ($theme.is_light | default true) }} - {{ $light_theme = $theme.light }} +{{ if site.Params.appearance.theme_day }} + {{- $scr.Set "primary" ($theme_day.primary | default "#1565c0") -}} {{ else }} - {{ $scr.Set "light" ($theme.light | default true) }} + {{- $scr.Set "primary" ($theme_night.primary | default "#1565c0") -}} {{ end }} -{{ if ($scr.Get "light") }} - {{- $scr.Set "background" ($theme.background | default "rgb(255, 255, 255)") -}} - {{- $scr.Set "dark_background" ($theme.dark.background | default "hsla(231, 15%, 16%, 1)") -}} - {{- $scr.Set "home_section_odd" ($theme.home_section_odd | default "rgb(255, 255, 255)") -}} - {{- $scr.Set "home_section_even" ($theme.home_section_even | default "rgb(247, 247, 247)") -}} - {{- $scr.Set "dark_home_section_odd" ($theme.dark.home_section_odd | default "hsla(231, 15%, 18%, 1)") -}} - {{- $scr.Set "dark_home_section_even" ($theme.dark.home_section_even | default "hsla(231, 15%, 16%, 1)") -}} -{{ else }} - {{- $scr.Set "background" ($light_theme.background | default "rgb(255, 255, 255)") -}} - {{- $scr.Set "dark_background" ($theme.background | default "rgb(40, 42, 54)") -}} - {{- $scr.Set "home_section_odd" ($light_theme.home_section_odd | default "rgb(255, 255, 255)") -}} - {{- $scr.Set "home_section_even" ($light_theme.home_section_even | default "rgb(247, 247, 247)") -}} - {{- $scr.Set "dark_home_section_odd" ($theme.home_section_odd | default "hsla(231, 15%, 18%, 1)") -}} - {{- $scr.Set "dark_home_section_even" ($theme.home_section_even | default "hsla(231, 15%, 16%, 1)") -}} -{{ end }} +{{- $scr.Set "background" ($theme_day.background | default "rgb(255, 255, 255)") -}} +{{- $scr.Set "home_section_odd" ($theme_day.home_section_odd | default "rgb(255, 255, 255)") -}} +{{- $scr.Set "home_section_even" ($theme_day.home_section_even | default "rgb(247, 247, 247)") -}} -{{- $scr.Set "link" ($theme.link | default $theme.primary) -}} -{{- $scr.Set "link_hover" ($theme.link_hover | default $theme.primary) -}} -{{- $scr.Set "dark_link" ($theme.dark.link | default $theme.primary) -}} -{{- $scr.Set "dark_link_hover" ($theme.dark.link_hover | default $theme.primary) -}} +{{- $scr.Set "dark_background" ($theme_night.background | default "hsla(231, 15%, 16%, 1)") -}} +{{- $scr.Set "dark_home_section_odd" ($theme_night.home_section_odd | default "hsla(231, 15%, 18%, 1)") -}} +{{- $scr.Set "dark_home_section_even" ($theme_night.home_section_even | default "hsla(231, 15%, 16%, 1)") -}} -{{- $scr.Set "link_decoration" ($theme.link_decoration | default "inherit") -}} +{{- $scr.Set "link" ($theme_day.link | default $theme_day.primary | default ($scr.Get "primary")) -}} +{{- $scr.Set "link_hover" ($theme_day.link_hover | default $theme_day.primary | default ($scr.Get "primary")) -}} +{{- $scr.Set "link_decoration" ($theme_day.link_decoration | default "inherit") -}} -{{- $scr.Set "primary" $theme.primary -}} +{{- $scr.Set "dark_link" ($theme_night.link | default $theme_night.primary | default ($scr.Get "primary")) -}} +{{- $scr.Set "dark_link_hover" ($theme_night.link_hover | default $theme_night.primary | default ($scr.Get "primary")) -}} +{{- $scr.Set "dark_link_decoration" ($theme_night.link_decoration | default "inherit") -}} -{{- $scr.Set "menu_primary" $theme.menu_primary -}} -{{- $scr.Set "menu_text" $theme.menu_text -}} -{{- $scr.Set "menu_text_active" $theme.menu_text_active -}} -{{- $scr.Set "menu_title" $theme.menu_title -}} +{{- $scr.Set "menu_primary" $theme_day.menu_primary -}} +{{- $scr.Set "menu_text" $theme_day.menu_text -}} +{{- $scr.Set "menu_text_active" $theme_day.menu_text_active -}} +{{- $scr.Set "menu_title" $theme_day.menu_title -}} -{{- $scr.Set "dark_menu_primary" ($theme.dark.menu_primary | default "rgb(40, 42, 54)") -}} -{{- $scr.Set "dark_menu_text" ($theme.dark.menu_text | default "white") -}} -{{- $scr.Set "dark_menu_text_active" ($theme.dark.menu_text_active | default "rgba(255, 255, 255, 0.8)") -}} -{{- $scr.Set "dark_menu_title" ($theme.dark.menu_title | default "white") -}} +{{- $scr.Set "dark_menu_primary" ($theme_night.menu_primary | default "rgb(40, 42, 54)") -}} +{{- $scr.Set "dark_menu_text" ($theme_night.menu_text | default "white") -}} +{{- $scr.Set "dark_menu_text_active" ($theme_night.menu_text_active | default "rgba(255, 255, 255, 0.8)") -}} +{{- $scr.Set "dark_menu_title" ($theme_night.menu_title | default "white") -}} diff --git a/wowchemy/layouts/partials/jsonld/article.html b/wowchemy/layouts/partials/jsonld/article.html index 33550bf0..698a5dc6 100644 --- a/wowchemy/layouts/partials/jsonld/article.html +++ b/wowchemy/layouts/partials/jsonld/article.html @@ -9,7 +9,7 @@ {{ end }} {{ $author := partial "functions/get_author_name" $page }} -{{ $publisher := site.Params.org_name | default site.Title }} +{{ $publisher := site.Params.seo.org_name | default site.Title }} {{ $logo_url := partial "functions/get_logo_url" $page -}}