adding leaflet-hugo maps
This will hopefully allow me to create shortcode maps with osm and leaflet rather than google.
This commit is contained in:
parent
31bab3cf3b
commit
16bcf8b091
18 changed files with 2074 additions and 112 deletions
21
layouts/partials/leaflet-loader.html
Normal file
21
layouts/partials/leaflet-loader.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{{ range $.Site.Params.hugoLeaflet.css }}
|
||||
<link rel="stylesheet" href="{{ .href }}" crossorigin="{{ .crossorigin }}" {{ range $key, $value := .params }} {{ $key | safeURL }}="{{ $value }}" {{ end }} />
|
||||
{{ end }}
|
||||
|
||||
{{ range $.Site.Params.hugoLeaflet.js }}
|
||||
<script src="{{ .src }}" crossorigin="{{ .crossorigin }}" {{ range $key, $value := .params }} {{ $key | safeURL }}="{{ $value }}" {{ end }} ></script>
|
||||
{{ end }}
|
||||
|
||||
<style>
|
||||
.fa-icon-marker {
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
}
|
||||
.download-track {
|
||||
background-color: #e1e1e1;
|
||||
text-align: center;
|
||||
margin-bottom: 25px;
|
||||
border-radius: 0 0 10px 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
Loading…
Add table
Add a link
Reference in a new issue