{{- $template := .block.template -}} {{- $position := .block.position -}} {{- $title := .block.title -}} {{- $term := false -}} {{- $layout := "grid" -}} {{- with .block.data }} {{ if .layout }} {{- $layout = .layout -}} {{ end }} {{ if .category }} {{- $term = site.GetPage (printf "/categories%s" .category) -}} {{ end }}