Files
hugo-mod-leaflet/layouts/partials/leaflet-loader.html
Martin Rubli 1f6c33e3d1 layouts: leaflet-loader: Fix absolute URL used for loading quip-maps
This only worked for local builds with a baseURL of http://localhost:1313/ but
not on something like http://myserver/mybase/.
2023-12-31 22:47:12 +01:00

13 lines
596 B
HTML

<script type="text/javascript" src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<script>
// Global object for quip-maps
const Quip = {};
</script>
<script src="{{ .Site.BaseURL }}/js/maps.bundle.js"></script>
<link rel="stylesheet" href="/css/hugo-mod-leaflet.css" />