#441, add menu.params.class support

This commit is contained in:
Alex Shpak 2022-11-02 23:42:10 +01:00
parent 9013a1f457
commit 1318a717ed

View file

@ -10,7 +10,7 @@
<ul> <ul>
{{ range . }} {{ range . }}
<li> <li>
<a href="{{ .URL }}" {{ if not .Page }}target="_blank" rel="noopener"{{ end }}> <a href="{{ .URL }}" {{ with .Params.class }}class="{{ . }}"{{ end }} {{ if not .Page }}target="_blank" rel="noopener"{{ end }}>
{{- .Pre -}} {{- .Pre -}}
{{ with .Page }} {{ with .Page }}
{{ partial "docs/title" .Page }} {{ partial "docs/title" .Page }}