I am using {{- define "listing" -}}<!-- Delete -->{{- end -}}
. But when I use {{- define "listing" -}}{{- end -}}
I get:
ERROR 2020/10/03 13:02:35 Failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:11:29: executing "listing" at <partial "elements/listing.html" .>: error calling partial: "C:\Users\sirin\GitHub\metabase\layouts\partials\elements\listing.html:2:43": execute of template failed: template: partials/elements/listing.html:2:43: executing "partials/elements/listing.html" at <(.Paginate .RegularPagesRecursive).Pages>: error calling Pages: runtime error: invalid memory address or nil pointer dereference
My baseof
has {{ block "listing" . }}{{- partial "elements/listing.html" . -}}{{ end }}