diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index 4bad551..54caa71 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -1,15 +1,26 @@
-{{ $currentSection := .Section -}}
-{{ $currentID := "" -}}
-{{ with .File }}{{ $currentID = .UniqueID }}{{ end -}}
diff --git a/layouts/partials/mobilemenu.html b/layouts/partials/mobilemenu.html
index af45ab8..96f9088 100644
--- a/layouts/partials/mobilemenu.html
+++ b/layouts/partials/mobilemenu.html
@@ -1,6 +1,3 @@
-{{ $currentSection := .Section -}}
-{{ $currentID := "" -}}
-{{ with .File }}{{ $currentID = .UniqueID }}{{ end -}}
{{ i18n "menu_mobile" }}
@@ -12,12 +9,26 @@