p.d-wiki/layouts/partials/docs/menu-page-bundle.html

5 lines
191 B
HTML

{{ with .Site.GetPage .Page.Params.BookMenuBundle }}
{{- $href := printf "href=\"%s\"" $.RelPermalink -}}
{{- replace .Content $href (print $href "class=active") | safeHTML -}}
{{ end }}