summaryrefslogtreecommitdiff
path: root/layouts/partials/menu
diff options
context:
space:
mode:
authormms <michal@sapka.me>2024-05-07 09:38:02 +0200
committermms <michal@sapka.me>2024-05-07 09:38:02 +0200
commitc4eac50c4680998f4df990c45628b2a2f798ee55 (patch)
tree0cb260616c7fe62ac1f301fa0456c1cd8b865cdb /layouts/partials/menu
parent051aeabd4c9d6fa186756a14ff814753f0c9d733 (diff)
feat: megrim
Diffstat (limited to 'layouts/partials/menu')
-rw-r--r--layouts/partials/menu/item.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/layouts/partials/menu/item.html b/layouts/partials/menu/item.html
index f50d604..adc8d55 100644
--- a/layouts/partials/menu/item.html
+++ b/layouts/partials/menu/item.html
@@ -18,7 +18,12 @@
{{- else if $item.Params.placeholder }}
<span class="placeholder">{{ $item.Pre }}{{$item.Name }}{{ $item.Post }}</span>
{{- else}}
- {{$item.Pre}} <b><a href="{{ $item.URL }}">{{ $item.Name }}</a></b>
+ {{$item.Pre}} <b>
+ <a
+ {{ if $item.Params.forcedId }}id="{{ $item.Params.forcedId }}"{{ end }}
+ href="{{ $item.URL }}">{{ $item.Name }}
+ </a></b>
+
{{- partial "menu/new-or-up.html" (dict "page" $pageItem) }}
{{ $item.Post }}
{{- end}}