mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-31 23:08:24 -04:00
menu : add menu location indicator
credits for fix with [.IsMenuCurrent](https://gohugo.io/functions/ismenucurrent/): https://stackoverflow.com/a/56454338
This commit is contained in:
parent
46a092553a
commit
6770e5e552
3 changed files with 14 additions and 4 deletions
|
@ -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 }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue