diff --git a/content/concerts/2022-helmstedt.md b/content/concerts/2022-helmstedt.md index 7a89f99..dd215a3 100644 --- a/content/concerts/2022-helmstedt.md +++ b/content/concerts/2022-helmstedt.md @@ -7,6 +7,8 @@ address: Calvörder Str. 1A, 38350 Helmstedt price: Eintritt frei (Hut) draft: true image: images/bg.jpg +lat : 52.2272555 +long : 11.0297554 outputs: - html - calendar diff --git a/layouts/concerts/single.html b/layouts/concerts/single.html index 23af28c..dbdce2a 100644 --- a/layouts/concerts/single.html +++ b/layouts/concerts/single.html @@ -32,5 +32,14 @@

{{ .Title }}

{{ partial "posts/tags.html" .}} + + {{ if not .Params.disableComments }} + {{ template "_internal/disqus.html" . }} + {{ end }} + + {{ if and (.Params.lat) (.Params.long) }} + {{ partial "map" . }} + {{ end }} + {{ end }} diff --git a/layouts/partials/map.html b/layouts/partials/map.html new file mode 100644 index 0000000..d6e6542 --- /dev/null +++ b/layouts/partials/map.html @@ -0,0 +1,39 @@ +{{ $title := .Page.Title }} +{{ $lat := .Page.Params.lat }} +{{ $long := .Page.Params.long }} + + +
+
+ + + + diff --git a/static/admin/config.yml b/static/admin/config.yml index d507ad1..b8e696c 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -60,6 +60,16 @@ collections: name: "image" widget: "image" required: false + - label: "Latitude" + name: "lat" + widget: "number" + value_type: "float" + required: false + - label: "Longitude" + name: "long" + widget: "number" + value_type: "float" + required: false - label: "Body" name: "body" widget: "markdown" diff --git a/themes/hugo-theme-massively b/themes/hugo-theme-massively index af53104..961d997 160000 --- a/themes/hugo-theme-massively +++ b/themes/hugo-theme-massively @@ -1 +1 @@ -Subproject commit af53104002dcff7bb9f30d2b06e258b18fdac483 +Subproject commit 961d9975b9b73d489f1df333da13149faae6f276