fixed small bug on pr #1359

This commit is contained in:
Nuno Coração
2024-03-21 11:06:56 +00:00
parent b0aa7298b5
commit 6ae4f4b71c
2 changed files with 11 additions and 7 deletions
+3 -2
View File
@@ -19,9 +19,10 @@
<div class="mt-1 mb-2 text-base text-neutral-500 dark:text-neutral-400 print:hidden">
{{ partial "article-meta/list.html" (dict "context" . "scope" "single") }}
</div>
{{ $translations := .AllTranslations }}
{{ with .File }}
{{ $path := .File.Path }}
{{range .AllTranslations}}
{{ $path := .Path }}
{{range $translations}}
{{ $lang := print "." .Lang ".md" }}
{{ $path = replace $path $lang ".md" }}
{{end}}