{{- $block := .block -}} {{- $block_class := partial "GetBlockClass" .block -}} {{- $term := false -}} {{- $layout := .block.data.layout | default "grid" -}} {{/* Waiting for data fix https://github.com/osunyorg/admin/issues/2060 */}} {{ if eq .block.data.mode "categories" }} {{ $block_class = replace $block_class (printf "block-posts--%s" $layout) " " }} {{ end }} {{- with .block.data }} {{- $options := dict "hide_image" .hide_image "hide_summary" .hide_summary "hide_category" .hide_category "hide_author" .hide_author "hide_date" .hide_date -}} {{ if .category }} {{- $term = site.GetPage (printf "/posts_categories%s" .category) -}} {{ end }}
{{ i18n "blocks.categories.items.count" ( len . ) }}