Skip to Content

lyte.dev

{{ $currentPage := . }} {{ range .Site.Menus.main }} {{ $active := or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} {{ $active = or $active (eq .Name $currentPage.Title) }} {{ $active = or $active (and (eq .Name "Blog") (eq $currentPage.Section "post")) }} {{ $active = or $active (and (eq .Name "Tags") (eq $currentPage.Section "tags")) }} {{ .Name }} {{ end }}
{{ block "main" . }}{{ .Content }}{{ end }}