{{ $heading_level := .heading_level | default 3 }} {{ $heading := printf "h%d" $heading_level }} {{ $heading_tag := partial "GetHeadingTag" (dict "level" .block.ranks.children "attributes" "class='title'" )}} {{ $options := .options }} {{ $template := printf "posts/post.html" }} {{ partial "blocks/templates/carousel.html" (dict "content" .posts "options" site.Params.blocks.posts.carousel "partial" $template "heading_tag" $heading_tag "block_options" $options )}}