diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index af12c3de..9e2bcb74 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -17,7 +17,7 @@ enableImageLazyLoading = true fingerprintAlgorithm = "sha256" [header] - layout = "hamburger" # valid options: basic, hamburger, hybrid, custom + layout = "hybrid" # valid options: basic, hamburger, hybrid, custom # logo = "img/logo.jpg" # logoDark = "img/dark-logo.jpg" showTitle = true diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 6a0c35fe..add457c7 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -47,7 +47,7 @@ {{ $jsCode := resources.Get "js/code.js" }} {{ $assets.Add "js" (slice $jsCode) }} {{ end }} - {{ if eq .Site.Params.header.layout "hamburger" }} + {{ if or (eq .Site.Params.header.layout "hamburger") (eq .Site.Params.header.layout "hybrid") }} {{ $jsMenu := resources.Get "js/menu.js" }} {{ $assets.Add "js" (slice $jsMenu) }} {{ end }} diff --git a/layouts/partials/header/hybrid.html b/layouts/partials/header/hybrid.html index b07bb523..34440e34 100644 --- a/layouts/partials/header/hybrid.html +++ b/layouts/partials/header/hybrid.html @@ -93,6 +93,7 @@ {{ with .Params.icon }}