{{- partial "content" . -}} {{- if eq $showChildren "embed" -}} {{- range sort (sort $children "Date" "desc") "Weight" }} {{ partial "embed" . -}} {{- end -}} {{- end -}}