From 720e3cb99ea882f7d72a62276f84087ca566f442 Mon Sep 17 00:00:00 2001 From: "max.mehl" Date: Tue, 6 Nov 2018 11:16:13 +0100 Subject: [PATCH] use variables instead of scratches which became possible by Hugo 0.49 --- site/layouts/partials/functions/video_fsfe.html | 12 ++++++------ site/layouts/shortcodes/translation_status.html | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/site/layouts/partials/functions/video_fsfe.html b/site/layouts/partials/functions/video_fsfe.html index c6f23ad..97ec2be 100644 --- a/site/layouts/partials/functions/video_fsfe.html +++ b/site/layouts/partials/functions/video_fsfe.html @@ -1,13 +1,13 @@ -{{ $.Scratch.Set "langext" "" }} +{{ $langext := "" }} {{ if or (eq .Lang "de") (eq .Lang "fr") (eq .Lang "it") (eq .Lang "pt") (eq .Lang "ru") }} - {{ $.Scratch.Add "langext" (printf "_%s" .Lang) }} + {{ $langext = (printf "_%s" .Lang) }} {{ end }}