summaryrefslogtreecommitdiff
path: root/layouts/shortcodes
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-04-08 19:48:14 +0200
committermms <michal@sapka.me>2024-04-08 19:48:14 +0200
commit47be93b724133b1edeac15faa46f1198557e33e3 (patch)
tree8b57592eeacf08b3d676a24dd4780179efdd5ad3 /layouts/shortcodes
parentb03f4fa221852d6a264ceee3e08c04aeeef93928 (diff)
feat: bsd hist as section and st 5x20
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/menu.html12
1 files changed, 7 insertions, 5 deletions
diff --git a/layouts/shortcodes/menu.html b/layouts/shortcodes/menu.html
index 356c675..3f6cc2f 100644
--- a/layouts/shortcodes/menu.html
+++ b/layouts/shortcodes/menu.html
@@ -4,15 +4,17 @@
<nav>
<ol>
{{- range index site.Menus $menuID }}
- <li>
- <a href="{{ .URL }}">
- {{ .Name }}
- </a>
-
+ {{if .Params.placeholder }}
+ <li class="placeholder">{{.Name}}
+ {{else}}
+ <li><a href="{{ .URL }}">{{ .Name }}</a>
+ {{end}}
+
{{ if .HasChildren }}
<ul>
{{ range .Children }}
<li>
+
<a href="{{ .URL }}">
{{ .Name }}
</a>