Skip to content
Snippets Groups Projects
Commit f630e74a authored by alexisben's avatar alexisben
Browse files

fix search position

parent 6be12562
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ params:
position: hero # hero | content
search:
active: false
position: menu # menu | upper-menu | fixed | footer
position: primary # primary | upper-menu | fixed | footer
appearance: icon # icon | text | both
home:
toc:
......
......@@ -82,15 +82,13 @@
{{- end -}}
{{ end -}}
{{ if site.Params.search.active }}
{{ if or (and (eq $kind "primary") (eq site.Params.search.position "menu")) (eq $kind site.Params.search.position "upper-menu") }}
<li class="nav-search">
{{ partial "header/search.html" (dict
"position" $kind
"context" .
)}}
</li>
{{ end }}
{{ if and site.Params.search.active (eq site.Params.search.position $kind) }}
<li class="nav-search">
{{ partial "header/search.html" (dict
"position" $kind
"context" .
)}}
</li>
{{ end }}
{{ if and (eq $kind "primary") (site.Params.menu.i18n.display) }}
{{ partial "header/i18n.html" .context }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment