diff --git a/layouts/_default/list.html b/layouts/_default/list.html
index 63b818b1..36bf195f 100644
--- a/layouts/_default/list.html
+++ b/layouts/_default/list.html
@@ -19,16 +19,17 @@
{{ partial "article-meta/list.html" (dict "context" . "scope" "single") }}
-
- {{ $path := .File.Path }}
- {{range .AllTranslations}}
- {{ $lang := print "." .Lang ".md" }}
- {{ $path = replace $path $lang ".md" }}
- {{end}}
+ {{ with .File }}
+ {{ $path := .File.Path }}
+ {{range .AllTranslations}}
+ {{ $lang := print "." .Lang ".md" }}
+ {{ $path = replace $path $lang ".md" }}
+ {{end}}
+ {{ end }}
{{ $jsPage := resources.Get "js/page.js" }}
{{ $jsPage = $jsPage | resources.Minify | resources.Fingerprint "sha512" }}
@@ -145,4 +146,4 @@
{{ partial "pagination.html" . }}
- {{ end }}
\ No newline at end of file
+ {{ end }}