From 3e1c0143a45537a92d37594e85d9f020e587efea Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Holger=20B=C3=B6rchers?=
Date: Sat, 17 Sep 2022 22:56:49 +0200
Subject: [PATCH] neue bilder und so weiter
---
config.toml | 4 +-
content/home/beerdigung.md | 18 +-
content/home/danksagung.md | 6 +
content/home/leben.md | 6 -
content/home/photos.md | 14 +-
layouts/shortcodes/figure.html | 29 ++++
layouts/shortcodes/gallery.html | 41 +++++
layouts/shortcodes/load-photoswipe-theme.html | 75 +++++++++
layouts/shortcodes/load-photoswipe.html | 71 ++++++++
static/css/hugo-easy-gallery.css | 159 ++++++++++++++++++
static/img/beerdigung/IMG-20220917-WA0022.jpg | Bin 0 -> 317451 bytes
static/img/beerdigung/IMG-20220917-WA0038.jpg | Bin 0 -> 334368 bytes
static/img/beerdigung/IMG-20220917-WA0039.jpg | Bin 0 -> 263852 bytes
static/img/beerdigung/IMG-20220917-WA0040.jpg | Bin 0 -> 346364 bytes
static/img/beerdigung/IMG_20220917_113030.jpg | Bin 0 -> 969242 bytes
static/img/beerdigung/IMG_20220917_113123.jpg | Bin 0 -> 1282860 bytes
static/img/beerdigung/IMG_20220917_113131.jpg | Bin 0 -> 1369991 bytes
static/img/beerdigung/IMG_20220917_113140.jpg | Bin 0 -> 1238525 bytes
static/img/beerdigung/IMG_20220917_113146.jpg | Bin 0 -> 1136205 bytes
static/img/beerdigung/IMG_20220917_114816.jpg | Bin 0 -> 1396775 bytes
static/img/beerdigung/IMG_20220917_115031.jpg | Bin 0 -> 1316277 bytes
static/img/beerdigung/IMG_20220917_115156.jpg | Bin 0 -> 1084909 bytes
static/img/beerdigung/IMG_20220917_115208.jpg | Bin 0 -> 1037354 bytes
static/img/beerdigung/IMG_20220917_115211.jpg | Bin 0 -> 1303370 bytes
static/img/beerdigung/IMG_20220917_115213.jpg | Bin 0 -> 1270855 bytes
static/js/load-photoswipe.js | 80 +++++++++
26 files changed, 489 insertions(+), 14 deletions(-)
create mode 100644 content/home/danksagung.md
delete mode 100644 content/home/leben.md
create mode 100644 layouts/shortcodes/figure.html
create mode 100644 layouts/shortcodes/gallery.html
create mode 100644 layouts/shortcodes/load-photoswipe-theme.html
create mode 100644 layouts/shortcodes/load-photoswipe.html
create mode 100644 static/css/hugo-easy-gallery.css
create mode 100644 static/img/beerdigung/IMG-20220917-WA0022.jpg
create mode 100644 static/img/beerdigung/IMG-20220917-WA0038.jpg
create mode 100644 static/img/beerdigung/IMG-20220917-WA0039.jpg
create mode 100644 static/img/beerdigung/IMG-20220917-WA0040.jpg
create mode 100644 static/img/beerdigung/IMG_20220917_113030.jpg
create mode 100644 static/img/beerdigung/IMG_20220917_113123.jpg
create mode 100644 static/img/beerdigung/IMG_20220917_113131.jpg
create mode 100644 static/img/beerdigung/IMG_20220917_113140.jpg
create mode 100644 static/img/beerdigung/IMG_20220917_113146.jpg
create mode 100644 static/img/beerdigung/IMG_20220917_114816.jpg
create mode 100644 static/img/beerdigung/IMG_20220917_115031.jpg
create mode 100644 static/img/beerdigung/IMG_20220917_115156.jpg
create mode 100644 static/img/beerdigung/IMG_20220917_115208.jpg
create mode 100644 static/img/beerdigung/IMG_20220917_115211.jpg
create mode 100644 static/img/beerdigung/IMG_20220917_115213.jpg
create mode 100644 static/js/load-photoswipe.js
diff --git a/config.toml b/config.toml
index 5ad1ffd..b86b2cb 100644
--- a/config.toml
+++ b/config.toml
@@ -7,11 +7,11 @@ theme = "introduction"
themeStyle = "dark"
showRSSButton = false # Show rss button in navigation
showMenu = false
- fadeIn = true # Turn on/off the fade-in effect
+ fadeIn = true # Turn on/off the fade-in effect
# Configure the home page
[params.home]
- introHeight = "fullheight" # Input either "medium" or "large" or "fullheight"
+ introHeight = "fullheight" # Input either "medium" or "large" or "fullheight"
[markup]
diff --git a/content/home/beerdigung.md b/content/home/beerdigung.md
index 2e8cf26..e8f5d55 100644
--- a/content/home/beerdigung.md
+++ b/content/home/beerdigung.md
@@ -3,4 +3,20 @@ title: "Beerdigung"
weight: 1
---
-Die Trauerfeier und anschließende Beerdigung findet am 17.09.2022 um 11:30 Uhr im Schloßpark Lütetsburg im engsten Familienkreis statt.
\ No newline at end of file
+Die Trauerfeier und anschließende Beerdigung fand am 17.09.2022 um 11:30 Uhr im Schloßpark Lütetsburg im engsten Familienkreis statt.
+
+
+**In Erinnerung**
+
+Es ist nie der richtige Zeitpunkt,
+es ist nie der richtige Tag,
+es ist nie alles gesagt.
+
+Es ist immer zu früh
+und doch sind da Erinnerungen,
+Gedanken, Gefühle, schöne Stunden
+und einzigartige Momente,
+die unvergessen bleiben.
+
+Diese Momente gilt es festzuhalten
+und für immer im Herzen zu bewahren.
diff --git a/content/home/danksagung.md b/content/home/danksagung.md
new file mode 100644
index 0000000..0edf48f
--- /dev/null
+++ b/content/home/danksagung.md
@@ -0,0 +1,6 @@
+---
+title: "Danksagung"
+weight: 10
+---
+
+Wir möchten uns bei allen für ihre große Anteilnahme bedanken, die uns in schweren Stunden beigestanden haben. Es ist schön zu spüren, dass wir in der Trauer nicht alleine sind.
diff --git a/content/home/leben.md b/content/home/leben.md
deleted file mode 100644
index 188c1d5..0000000
--- a/content/home/leben.md
+++ /dev/null
@@ -1,6 +0,0 @@
----
-title: "Leben"
-weight: 10
----
-
-TODO
diff --git a/content/home/photos.md b/content/home/photos.md
index ed6a291..eef6991 100644
--- a/content/home/photos.md
+++ b/content/home/photos.md
@@ -3,10 +3,14 @@ title: "Fotos"
weight: 20
---
-{{< figure src="img/IMG-20220822-WA0009.jpg" title="Am Badesee in Tannenhausen" >}}
+{{< gallery >}}
+{{< figure link="img/IMG-20220822-WA0009.jpg" caption="Am Badesee in Tannenhausen" >}}
+{{< figure link="img/IMG-20220822-WA0011.jpg" caption="Schwerin" >}}
+{{< figure link="img/IMG-20220822-WA0012.jpg" caption="Schwerin" >}}
+{{< figure link="img/IMG-20220822-WA0014.jpg" caption="Beim Schweiner Schloss" >}}
+{{< /gallery >}}
-{{< figure src="img/IMG-20220822-WA0011.jpg" title="Schwerin" >}}
+#### Beerdigung
-{{< figure src="img/IMG-20220822-WA0012.jpg" title="Schwerin" >}}
-
-{{< figure src="img/IMG-20220822-WA0014.jpg" title="Beim Schweiner Schloss" >}}
\ No newline at end of file
+{{< gallery dir="/img/beerdigung/" caption-position="none" />}}
+{{< load-photoswipe >}}
\ No newline at end of file
diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html
new file mode 100644
index 0000000..3676c68
--- /dev/null
+++ b/layouts/shortcodes/figure.html
@@ -0,0 +1,29 @@
+
+
+{{- if not ($.Page.Scratch.Get "figurecount") }}{{ end }}
+{{- $.Page.Scratch.Add "figurecount" 1 -}}
+
+{{- $thumb := .Get "src" | default (printf "%s." (.Get "thumb") | replace (.Get "link") ".") }}
+
+
+
+
+
+ {{ with .Get "link" | default (.Get "src") }}{{ end }}
+ {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
+
+ {{- with .Get "title" }}
{{.}}
{{ end }}
+ {{- if or (.Get "caption") (.Get "attr")}}
+
+ {{- .Get "caption" -}}
+ {{- with .Get "attrlink"}}{{ .Get "attr" }}{{ else }}{{ .Get "attr"}}{{ end -}}
+
+ {{- end }}
+
+ {{- end }}
+
+
diff --git a/layouts/shortcodes/gallery.html b/layouts/shortcodes/gallery.html
new file mode 100644
index 0000000..6c644b9
--- /dev/null
+++ b/layouts/shortcodes/gallery.html
@@ -0,0 +1,41 @@
+
+
+{{- if not ($.Page.Scratch.Get "figurecount") }}{{ end }}
+{{- $.Page.Scratch.Add "figurecount" 1 }}
+{{ $baseURL := .Site.BaseURL }}
+