theme: compat for Hugo 0.114.0 #573

This commit is contained in:
Sören Weber 2023-06-22 17:51:18 +02:00
parent 7e073f9681
commit 625f56b887
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -12,7 +12,7 @@
</div>{{ if $link }}</form>{{ end }}
{{- $assetBusting := not .Site.Params.disableAssetsBusting }}
{{- $pageBaseLang := replaceRE "([a-z]+).*" "${1}" .Page.Lang }}
{{- $contentlangs := (union (slice | append .Site.Params.additionalContentLanguage) (slice $pageBaseLang)) }}
{{- $contentlangs := (union (slice | append (.Site.Params.additionalContentLanguage | default slice)) (slice $pageBaseLang)) }}
{{- $quotedcontentlangs := slice }}
{{- $missingcontentlangs := slice }}
{{- range $contentlangs }}