How would I go about to see if an inline table in front matter is empty?
[point]
x = ""
y = ""
I’ve tried doing
{{with .Params.point}}
{{.}}
{{end}}
This gives
map[y: x:]
How would I go about to see if an inline table in front matter is empty?
[point]
x = ""
y = ""
I’ve tried doing
{{with .Params.point}}
{{.}}
{{end}}
This gives
map[y: x:]
This may give you an idea to play off of
{{range $key, $value := .Params.point}}
{{with .}}
{{ print $key "=" $value}}
{{else}}
{{ print $key " is empty"}}
{{end}}
{{end}}