From b103276ea5389e733c7963578a729ac7d22f2d59 Mon Sep 17 00:00:00 2001
From: Benjamin Affolter <5555767+bliemli@users.noreply.github.com>
Date: Thu, 2 Jan 2025 21:54:08 +0100
Subject: [PATCH] Implement privacy policy as shortcode
---
config/_default/hugo.yaml | 3 ---
content/de/privacy-policy.md | 4 ++--
content/en/privacy-policy.md | 4 ++--
layouts/shortcodes/privacybee.html | 5 +++++
4 files changed, 9 insertions(+), 7 deletions(-)
create mode 100644 layouts/shortcodes/privacybee.html
diff --git a/config/_default/hugo.yaml b/config/_default/hugo.yaml
index 4c44dac..3c517cb 100644
--- a/config/_default/hugo.yaml
+++ b/config/_default/hugo.yaml
@@ -55,9 +55,6 @@ params:
markup:
- goldmark:
- renderer:
- unsafe: true
tableOfContents:
startLevel: 1
endLevel: 4
diff --git a/content/de/privacy-policy.md b/content/de/privacy-policy.md
index 8f59b8b..e1987a7 100644
--- a/content/de/privacy-policy.md
+++ b/content/de/privacy-policy.md
@@ -1,5 +1,5 @@
---
type: page
---
-
-
+
+{{< privacybee id="cljn8ijv41251220ue3zcs0dfq" lang="de" >}}
diff --git a/content/en/privacy-policy.md b/content/en/privacy-policy.md
index 04b878b..245779f 100644
--- a/content/en/privacy-policy.md
+++ b/content/en/privacy-policy.md
@@ -1,5 +1,5 @@
---
type: page
---
-
-
+
+{{< privacybee id="cljn8ijv41251220ue3zcs0dfq" lang="en" >}}
diff --git a/layouts/shortcodes/privacybee.html b/layouts/shortcodes/privacybee.html
new file mode 100644
index 0000000..fa17e8c
--- /dev/null
+++ b/layouts/shortcodes/privacybee.html
@@ -0,0 +1,5 @@
+{{- $id := .Get "id" -}}
+{{- $lang := .Get "lang" -}}
+
+
+