mirror of https://github.com/jpanther/congo.git
fix: update hybrid menu as well
parent
8ae115e95c
commit
2ca6096cdf
|
@ -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
|
||||
|
|
|
@ -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 }}
|
||||
|
|
|
@ -93,6 +93,7 @@
|
|||
<a
|
||||
href="{{ .URL }}"
|
||||
title="{{ .Title }}"
|
||||
onclick="close_menu()"
|
||||
{{ with .Params.target }}target="{{ . }}"{{ end }}
|
||||
>{{ with .Params.icon }}
|
||||
<span
|
||||
|
|
Loading…
Reference in New Issue