Skip to content

Commit

Permalink
Implement privacy policy as shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
bliemli committed Jan 2, 2025
1 parent 29a3011 commit b103276
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
3 changes: 0 additions & 3 deletions config/_default/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ params:
<link rel="stylesheet" type="text/css" href="/css/hoppy.css">
markup:
goldmark:
renderer:
unsafe: true
tableOfContents:
startLevel: 1
endLevel: 4
4 changes: 2 additions & 2 deletions content/de/privacy-policy.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
type: page
---
<script src="https://www.privacybee.ch/widget.js"></script>
<privacybee-widget website-id="cljn8ijv41251220ue3zcs0dfq" lang="de"></privacybee-widget>

{{< privacybee id="cljn8ijv41251220ue3zcs0dfq" lang="de" >}}
4 changes: 2 additions & 2 deletions content/en/privacy-policy.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
type: page
---
<script src="https://www.privacybee.ch/widget.js"></script>
<privacybee-widget website-id="cljn8ijv41251220ue3zcs0dfq" lang="en"></privacybee-widget>

{{< privacybee id="cljn8ijv41251220ue3zcs0dfq" lang="en" >}}
5 changes: 5 additions & 0 deletions layouts/shortcodes/privacybee.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- $id := .Get "id" -}}
{{- $lang := .Get "lang" -}}

<script src="https://www.privacybee.ch/widget.js"></script>
<privacybee-widget website-id="{{ $id }}" lang="{{ $lang }}"></privacybee-widget>

0 comments on commit b103276

Please sign in to comment.