From c41d408a511696674a7ccc28872f8753b955888f Mon Sep 17 00:00:00 2001 From: ptrcnull Date: Wed, 25 Nov 2020 01:43:06 +0100 Subject: [PATCH] fix: More fixes for dots in the header/footer --- layouts/partials/footer.html | 8 ++++---- layouts/partials/header.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 8ba9f44..608b016 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,7 +1,7 @@ diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8675636..cf813a7 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -8,7 +8,7 @@ Home . {{ with .Site.Menus.main }} {{ range $i, $e := . }} - {{ $e.Name }}{{ if ne (len .Site.Menus.main) $i }} . {{ end }} + {{ $e.Name }}{{ if ne (sub (len $.Site.Menus.main) 1) $i }} . {{ end }} {{ end }} {{ end }}