From 6907412c206f3c0e739e7abb5d6c101f92e3bc3c Mon Sep 17 00:00:00 2001 From: Fredrik Jonsson Date: Wed, 5 Jun 2019 11:45:38 +0200 Subject: [PATCH] Replace deprecated variables .Hugo and .UniqueID with hugo and .File.UniqueID. --- layouts/partials/menu.html | 9 +++++---- layouts/partials/meta.html | 2 +- layouts/partials/mobilemenu.html | 9 +++++---- layouts/partials/sidebar.html | 8 +++++--- layouts/partials/styles.html | 2 +- 5 files changed, 17 insertions(+), 13 deletions(-) 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 -}}