And yet, the site builds with an error message saying: range can't iterate over {{<nil> 0 0} {{0 0} 0} false {{0 0} 0} {0 0} 0xc420991680 0 073352fc9a6d4dd131571f06ac0f5a2b 0xc420af25a0}
Awesome! You could grab your gallery style from within your range using $.Params.gallerystyle and avoid storing it in a variable but I’m just bragging now
And if $.Param "gallerystyle" is used, you can set Params → gallerystyle in your site config, which will be used as default if a page front-matter does not define that param
Or does $.Params.gallerystyle do the same thing? Or limit to checking just the page and not the site params? I haven’t tested…
I’m porting a template that uses a series of classes to set different color schemes and options for it’s components. That’s why I am using the $gallerystyles and other similar frontmatter.
Didn’t know I could set those defaults in config.toml. Will certainly keep that in mind when I am testing this ‘live’ and have to edit content.