diff --git a/layouts/shortcodes/gallery.html b/layouts/shortcodes/gallery.html index 81a1755..aea8cb8 100644 --- a/layouts/shortcodes/gallery.html +++ b/layouts/shortcodes/gallery.html @@ -1,10 +1,15 @@ {{ $id := default (printf "gallery-%d" (now.UnixNano)) (.Get "id") }} +{{ $rel := .Page.RelPermalink }} +{{ if hasPrefix $rel "/en" }} + {{ $rel = replace $rel "/en" "" }} +{{ end }}