mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-14 03:22:17 +00:00
Move the map JS out from the theme
This commit is contained in:
@@ -8,11 +8,6 @@
|
||||
</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 }}
|
||||
|
||||
Reference in New Issue
Block a user