mirror of
https://github.com/nikdoof/website-hugo.git
synced 2025-12-13 12:12:18 +00:00
Move the map JS out from the theme
This commit is contained in:
19
layouts/page/visit.html
Normal file
19
layouts/page/visit.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{ define "title" }}
|
||||
{{ .Title }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "subtitle" }}
|
||||
{{ .Params.subtitle }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "extra_css" }}
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v8.2.0/ol.css">
|
||||
{{ end }}
|
||||
|
||||
{{ define "extra_js" }}
|
||||
<script src="https://cdn.jsdelivr.net/npm/ol@v8.2.0/dist/ol.js"></script>
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
@@ -1,2 +0,0 @@
|
||||
<div id="map" class="map"></div>
|
||||
{{ .Page.Store.Set "hasMap" true }}
|
||||
Reference in New Issue
Block a user