2022-08-26 15:15:25 +08:00
|
|
|
<ul>
|
|
|
|
{{- range $item := .collection -}}
|
|
|
|
<li>
|
|
|
|
{{- with $item.url -}}
|
2023-01-01 17:08:14 +08:00
|
|
|
<a href="{{ $item.url | relURL }}">{{ safeHTML $item.title }}</a>
|
2022-08-26 15:15:25 +08:00
|
|
|
{{- else -}}
|
|
|
|
{{ safeHTML $item.title }}
|
|
|
|
{{- end -}}
|
|
|
|
</li>
|
|
|
|
|
2022-08-27 21:24:22 +08:00
|
|
|
{{- if $item.entries }}
|
|
|
|
{{ partial "menu_item.html" (dict "context" . "collection" $item.entries) }}
|
|
|
|
{{- end -}}
|
|
|
|
|
2022-08-26 15:15:25 +08:00
|
|
|
{{- if $item.post_list -}}
|
2023-01-08 14:03:03 +03:00
|
|
|
{{ partial "post_list.html" (dict "context" . "section" $item.post_list.section "limit" $item.post_list.limit "show_more" $item.post_list.show_more "show_more_text" $item.post_list.show_more_text "show_more_url" $item.post_list.show_more_url) -}}
|
2022-08-26 15:15:25 +08:00
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
2022-08-27 21:24:22 +08:00
|
|
|
</ul>
|