aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2022-11-02 23:42:10 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2022-11-02 23:42:10 +0100
commit1318a717ed4026568be2c7c4a44324cd61cab9aa (patch)
tree8a63be2e3df2fe00183d1704acb6b28a768080ee /layouts
parent9013a1f4570885416254aabbe7e389822d2fb215 (diff)
#441, add menu.params.class support
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/docs/menu-hugo.html2
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 }}