small fixes

This commit is contained in:
teldra 2022-06-16 14:08:11 +02:00
parent 2758a384fb
commit d40e5f679c
2 changed files with 11 additions and 1 deletions

View File

@ -7,6 +7,9 @@ contact = true
#do you want an archive?
archive = true
#do you want an searchpage??
search = true
#do you want a newsletter page?
newsletter = true

View File

@ -1,5 +1,12 @@
{{- if or (eq site.Params.archive true) (eq site.Params.newsletter true) (eq site.Params.links true) (eq site.Params.imprint true) }}
{{- if or (eq site.Params.archive true) (eq site.Params.newsletter true) (eq site.Params.links true) (eq site.Params.imprint true) (eq site.Params.search true) }}
<div class="infobox a">
{{- if eq site.Params.search true -}}
{{ $search := "Search" }}
{{ if i18n "search" }}
{{ $search = i18n "search" }}
{{ end }}
<a href="{{- "search" | absLangURL -}}">{{- $search | strings.FirstUpper -}}</a>
{{- end -}}
{{- if eq site.Params.archive true -}}
{{ $archive := "Archive" }}
{{ if i18n "archive" }}