From 1e72fd7c0e922ffea6df4607b82a737b22f3e186 Mon Sep 17 00:00:00 2001 From: Patrick Neff Date: Thu, 17 Jan 2019 21:35:55 +0100 Subject: [PATCH] fix menu --- config.toml | 3 +++ themes/neff/layouts/partials/menu-item.html | 8 ++++++-- themes/neff/layouts/partials/menu.html | 10 +++++++--- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/config.toml b/config.toml index 76dd32f..1f81f03 100644 --- a/config.toml +++ b/config.toml @@ -52,6 +52,7 @@ googleAnalytics = "UA-12671637-1" [[menu.footer]] identifier = "left" weight = -200 + url = "#" [[menu.footer]] identifier = "copyright" @@ -63,6 +64,7 @@ googleAnalytics = "UA-12671637-1" [[menu.footer]] identifier = "mid" weight = -100 + url = "#" [[menu.footer]] identifier = "kontakt" @@ -75,6 +77,7 @@ googleAnalytics = "UA-12671637-1" [[menu.footer]] identifier = "right" weight = 0 + url = "#" [[menu.footer]] identifier = "sitemap" diff --git a/themes/neff/layouts/partials/menu-item.html b/themes/neff/layouts/partials/menu-item.html index b3fc2c4..6e33efb 100644 --- a/themes/neff/layouts/partials/menu-item.html +++ b/themes/neff/layouts/partials/menu-item.html @@ -1,4 +1,6 @@ +{{ .item }} {{- $currentPage := .ctx -}} +{{- $link := .item -}} {{- if (eq .item.Identifier "copyright") -}}
  • @@ -7,9 +9,11 @@
  • {{- else -}}
  • + {{- if ne .item.Title "" -}} - {{ .item.Pre }} - {{ .item.Name }} + {{ $link.Pre }} + {{ $link.Name }} + {{- end -}}
  • {{- end -}} diff --git a/themes/neff/layouts/partials/menu.html b/themes/neff/layouts/partials/menu.html index ad68bd2..ffb57dc 100755 --- a/themes/neff/layouts/partials/menu.html +++ b/themes/neff/layouts/partials/menu.html @@ -3,10 +3,14 @@