diff --git a/layouts/shortcodes/children.html b/layouts/shortcodes/children.html index 7558a6901f..2c5bf2ad23 100644 --- a/layouts/shortcodes/children.html +++ b/layouts/shortcodes/children.html @@ -5,6 +5,9 @@ {{- $withDescription := .Get "description" | default false }} {{- $sortTerm := .Get "sort" | lower }} {{- $containerstyle := .Get "containerstyle" | default "ul" }} +{{- if( and (not (eq $style "li") ) (eq $containerstyle "ul" ) ) }} + {{- $containerstyle = "div" }} +{{- end }} {{ (printf "<%s class=\"children children-%s children-sort-%s\">" $containerstyle $style $sortTerm)|safeHTML }} {{- $pages := .Page.Pages }}