summaryrefslogtreecommitdiff
path: root/layouts/partials/menu/item.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/menu/item.html')
-rw-r--r--layouts/partials/menu/item.html28
1 files changed, 19 insertions, 9 deletions
diff --git a/layouts/partials/menu/item.html b/layouts/partials/menu/item.html
index 599f2db..f50d604 100644
--- a/layouts/partials/menu/item.html
+++ b/layouts/partials/menu/item.html
@@ -4,28 +4,38 @@
{{- if $pageItem.Params.menu_item_override }}
- {{- if $pageItem.Params.menu_item_override_start_li }}
- <li>
- {{- end}}
+ {{- if $pageItem.Params.menu_item_override_start_li }}<li>{{- end}}
{{$item.Pre}}<b><a href="{{ $item.URL }}">{{ $pageItem.Params.menu_item_override }}</a></b>{{- partial "menu/new-or-up.html" (dict "page" $pageItem) }}{{$item.Post}}
- {{- if $pageItem.Params.menu_item_override_end_li }}
- </li>
- {{- end}}
+
+ {{- if $pageItem.Params.menu_item_override_end_li }}</li>{{- end}}
{{- else}}
<li>
{{- if $item.Params.nonpage }}
- {{$item.Name }}{{ $item.Post }}
+ {{ $item.Pre}} {{$item.Name }} {{ $item.Post }}
{{- else if $item.Params.placeholder }}
- <span class="placeholder">{{$item.Name }}{{ $item.Post }}</span>
+ <span class="placeholder">{{ $item.Pre }}{{$item.Name }}{{ $item.Post }}</span>
{{- else}}
- <b><a href="{{ $item.URL }}">{{ $item.Name }}</a></b>
+ {{$item.Pre}} <b><a href="{{ $item.URL }}">{{ $item.Name }}</a></b>
{{- partial "menu/new-or-up.html" (dict "page" $pageItem) }}
{{ $item.Post }}
{{- end}}
+
+ {{- if $item.Params.inlineChildren}}
+ {{- with $item.Children }}
+ - {{- partial "inline/menu/inline.html" (dict "page" $page "menuEntries" .) }}
+ {{- end}}
+
+ {{- else}}
+ {{- with $item.Children }}
+ <ul>{{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) }}</ul>
+ {{- end }}
+ {{- end}}
+
+
</li>
{{- end}}