From 85336ead0c425ef2b2250f9bbe3219e1db45ce2e Mon Sep 17 00:00:00 2001 From: "max.mehl" Date: Tue, 19 Sep 2017 12:27:42 +0200 Subject: [PATCH] Show language-dependent video for selected languages Currently, this is only valid for DE but it can be easily extended --- site/layouts/partials/functions/video_fsfe.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/site/layouts/partials/functions/video_fsfe.html b/site/layouts/partials/functions/video_fsfe.html index 747e2a1..a1460b5 100644 --- a/site/layouts/partials/functions/video_fsfe.html +++ b/site/layouts/partials/functions/video_fsfe.html @@ -1,9 +1,13 @@ +{{ $.Scratch.Set "langext" "" }} +{{ if and (or (eq .Lang "de") ) }} + {{ $.Scratch.Add "langext" (printf "_%s" .Lang) }} +{{ end }}