mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-14 13:52:17 +00:00
Add OSM map on the Visit Us page
This commit is contained in:
@@ -8,6 +8,11 @@
|
||||
</script>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Page.Store.Get "hasMap" }}
|
||||
<script src="https://cdn.jsdelivr.net/npm/ol@v8.2.0/dist/ol.js"></script>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v8.2.0/ol.css">
|
||||
{{ end }}
|
||||
|
||||
{{ $theme := resources.Get "js/theme.js" }}
|
||||
{{ $site := resources.Get "js/site.js" }}
|
||||
{{ $js := slice $site $theme | resources.Concat "js/bundle.js" | resources.Minify }}
|
||||
|
||||
@@ -20,7 +20,10 @@
|
||||
<link rel="alternate" type="text/calendar" href="https://api.leighhack.org/events.ics" title="{{ .Site.Title }} Events">
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
|
||||
{{ if .Page.Store.Get "hasMap" }}
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v8.2.0/ol.css">
|
||||
{{ end }}
|
||||
{{ $opts := dict "transpiler" "libsass" "targetPath" "css/leighhack.css" }}
|
||||
{{ with resources.Get "sass/leighhack.scss" | toCSS $opts | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user