diff options
| author | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-20 19:03:43 +0530 |
|---|---|---|
| committer | Aditya Telange <21258296+adityatelange@users.noreply.github.com> | 2020-09-20 19:03:43 +0530 |
| commit | 6770e5e552bc367181f3786169e614683fadeb16 (patch) | |
| tree | 17d5998ae1bde83971ab6cc18964641ed7d36cbc /layouts/_default | |
| parent | 46a092553ad84160446baa5557b68ab6f7cf4c59 (diff) | |
menu : add menu location indicator
credits for fix with [.IsMenuCurrent](https://gohugo.io/functions/ismenucurrent/): https://stackoverflow.com/a/56454338
Diffstat (limited to 'layouts/_default')
| -rw-r--r-- | layouts/_default/baseof.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c2cb567..7253249 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -8,7 +8,7 @@ <body class="{{ if (and (eq .Kind `page` ) (ne .Layout `archives`)) }}single{{ else }}list{{ if .IsHome }} home {{ end }}{{ end }}{{ if eq $.Site.Params.defaultTheme `dark` }} dark {{ end }}" id="top"> - {{- partialCached "header.html" . }} + {{- partialCached "header.html" . .Page}} <main class="main"> {{- block "main" . }} {{end }} |
