hugo-leaflet
hugo-leaflet copied to clipboard
can't use the shortcode in my .md file
Hi,
I try to use your library (thanks a lot fo your work) but I wasn't able to move forward the first explications.
- Font Awesome icons is in my project,
- I downloaded the zip, placed the
shortcodes filesintheme>layouts>shortcodes, - the
JS filesintheme>assets>js, - the
imagesinmy-project>assets>images - and the
min.css fileinmy-project>public>css - I added
{{ partial "leaflet-loader" . }}in the html page of my project i wanted to work on - and in my
{{ if .HasShortcode "leaflet-map" }} {{ partial "leaflet-loader" . }} {{ end }}
but when I pasted {{< leaflet-map mapHeight="500px" mapWidth="100%" mapLat="27.66995" mapLon="85.43249" >}} in my .md content file I have this error in my console: failed to unmarshal YAML: yaml: line 7: could not find expected ':'
I guess I'm doing something wrong but I can't find what... It's the first time I use Hugo and Leaflet and now I'm quite lost :) Can you help me please ?