altrdev / hugo-leaflet

Hugo Shortcodes for inserting a OSM Map, Marker or Track into your posts by using leaflet
MIT License
54 stars 10 forks source link

Allow dynamic specification of css and js resources #5

Closed LukeLR closed 1 year ago

LukeLR commented 1 year ago

This removes the static css and js includes from leaflet-loader.html and instead adds a dynamic variant using hugo templating. The default values are stored in config.yaml, so this change should be transparent to any existing usage. However, this allows users to specify their own version, use a different CDN or host their own copies of the required files. Furthermore, this allows to easily add additional resources and additional parameters for loading them. Feedback is much appreciated! Thanks for this awesome work!

LukeLR commented 1 year ago

Thanks for merging!

On 4. Nov 2022, at 17:54, Alessandro Travi @.***> wrote:

 Merged #5 into master.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.