Pretty simple error when trying to check if a variable exists:
{{ partial "books.html" . }}
Then in books.html:
{{ if .column }}
{{ end }}
Error:
error calling partial: template: theme/partials/books.html:3:6: executing "theme/partials/books.html" at <.column>: can't evaluate field column in type *hugolib.PageOutput
Error disappears if I remove the dot from the partial.
{{ partial "books.html" }}
But even when it serves my purposes, I’m not sure if that’s how partials should be called (without the dot)
Help is appreciated