Well, some progress - multiple posts coming into the Map.
However, when bringing in the Front Matter variable (in this case the Title) I get “quoted” coords instead of the bare coords (which doesn’t work). A general call-out to anybody who knows Hugo and bringing Front Matter into a script better than ?! Thanks.
Here is the code:
{{ $list := (where .Site.Pages "Type" "post") }}
{{ range $list }}
{{ if.Title }}
var marker = new L.Marker([ {{ .Title }} ],
Gives:
var marker = new L.Marker([ "51.1441,0.37165" ],
This is how it should look:
var marker = new L.Marker([ 51.1441,0.37165 ],