diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 4a39f60..8515210 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -1,13 +1,14 @@ -{{ $home := relLangURL "/" }} -{{ $currentSection := .Section }} -{{ $currentID := .UniqueID }} +{{ $home := relLangURL "/" -}} +{{ $currentSection := .Section -}} +{{ $currentID := "" -}} +{{ with .File }}{{ $currentID = .UniqueID }}{{ end -}}