hugo-book-theme/layouts/partials/docs/menu-bundle.html
2019-10-08 23:17:30 +02:00

4 lines
191 B
HTML

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