Embedding a map


I am new to Hugo. Is there a way to embed a google map or openstreetmap in Hugo using shortcodes or any other way?

Thank you,

Yes, you can put the map’s embed code in a template or, simply paste it in the a markdown content file where you want it.


This is an example:

This site is built in an old Hugo, but the concept still should work for you. I just pasted the Google Maps embed code in the bottom of this markdown file.

1 Like

Thank you RickCogley, it’s working fine.