diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2022-11-02 23:42:10 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2022-11-02 23:42:10 +0100 |
commit | 1318a717ed4026568be2c7c4a44324cd61cab9aa (patch) | |
tree | 8a63be2e3df2fe00183d1704acb6b28a768080ee | |
parent | 9013a1f4570885416254aabbe7e389822d2fb215 (diff) |
#441, add menu.params.class support
-rw-r--r-- | layouts/partials/docs/menu-hugo.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/docs/menu-hugo.html b/layouts/partials/docs/menu-hugo.html index 02391ae..5f01be0 100644 --- a/layouts/partials/docs/menu-hugo.html +++ b/layouts/partials/docs/menu-hugo.html @@ -10,7 +10,7 @@ <ul> {{ range . }} <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 -}} {{ with .Page }} {{ partial "docs/title" .Page }} |