From 6770e5e552bc367181f3786169e614683fadeb16 Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 20 Sep 2020 19:03:43 +0530 Subject: menu : add menu location indicator credits for fix with [.IsMenuCurrent](https://gohugo.io/functions/ismenucurrent/): https://stackoverflow.com/a/56454338 --- layouts/partials/header.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'layouts/partials/header.html') diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7be916c..6c02c7c 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -12,14 +12,19 @@ {{- else }} {{- end }} - {{- if .Site.Menus.main }} + {{ $currentPage := . }} - {{- end }} \ No newline at end of file -- cgit v1.2.3