Skip to content
Snippets Groups Projects
Commit a1e89e08 authored by Olivia206's avatar Olivia206
Browse files

removed search title by default

parent ae0b8fd1
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,14 @@
padding: half($spacing0) $spacing0
text-align: left
box-shadow: none
span,
&::after
display: inline
&.without-text
span
display: none
&::after
margin-left: 0
&::after
font-size: $body-size-desktop
line-height: inherit
......
......@@ -21,6 +21,7 @@ params:
search:
active: true
position: menu # menu | fixed | footer
enable_text: false
home:
toc:
disabled: true
......
<button id="search-button" class="pagefind-ui__toggle pagefind-{{ .position }}" aria-expanded="false">
{{- i18n (printf "commons.search.title") -}}
{{ $search_with_text := site.Params.search.enable_text }}
{{ $search_position := site.Params.search.position }}
<button id="search-button" class="pagefind-ui__toggle pagefind-{{ .position }} {{- if and (not $search_with_text) (eq $search_position "menu")}} without-text {{- end }}" aria-expanded="false" aria-label='{{- i18n (printf "commons.search.title") -}}'>
<span>{{- i18n (printf "commons.search.title") -}}</span>
</button>
<script src="/pagefind/pagefind-ui.js"></script>
......
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