From 625f56b887c775a977bd0ccd85fd003275cfa2f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Thu, 22 Jun 2023 17:51:18 +0200 Subject: [PATCH] theme: compat for Hugo 0.114.0 #573 --- layouts/partials/search.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/search.html b/layouts/partials/search.html index 1e9665d16c..2bced5c15a 100644 --- a/layouts/partials/search.html +++ b/layouts/partials/search.html @@ -12,7 +12,7 @@ {{ if $link }}{{ 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 }}