{{ $cols := .Get "cols" | default "3" }}
<div class="img-grid cols-{{ $cols }}">
{{ .Inner | $.Page.RenderString (dict "display" "block") }}
</div>