Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alex-shpak/hugo-book.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2022-11-03 01:42:10 +0300
committerAlex Shpak <alex-shpak@users.noreply.github.com>2022-11-03 01:42:10 +0300
commit1318a717ed4026568be2c7c4a44324cd61cab9aa (patch)
tree8a63be2e3df2fe00183d1704acb6b28a768080ee
parent9013a1f4570885416254aabbe7e389822d2fb215 (diff)
#441, add menu.params.class support
-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 }}