Skip to content

Commit 4ba6862

Browse files
committed
Add a follow me section to the custom footer, similar to the
support me
1 parent 8688aa4 commit 4ba6862

3 files changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<div class="follow-links">
2+
{{- $socialMap := resources.Get "data/social.yml" | transform.Unmarshal -}}
3+
{{- $followServices := slice "linkedin" "facebook" "instagram" "bluesky" -}}
4+
5+
{{- range $key, $value := .Site.Params.social -}}
6+
{{- if in $followServices ($key | lower) -}}
7+
{{- $follow:= $key | lower | index $socialMap | default dict -}}
8+
{{- if $value -}}
9+
{{- /* This mimics the LoveIt logic to prepare the dict for the plugin */ -}}
10+
{{- if reflect.IsMap $value -}}
11+
{{- $follow = merge $follow $value -}}
12+
{{- else -}}
13+
{{- $follow = dict "Id" $value | merge $follow -}}
14+
{{- end -}}
15+
{{- partial "plugin/social.html" $follow -}}
16+
{{- end -}}
17+
{{- end -}}
18+
{{- end -}}
19+
</div>

layouts/_partials/custom/footer-de.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
<h4>Fragen oder Anmerkungen?</h4>
33
<p>Ich freue mich über dein Feedback! Ob konstruktive Ideen, Fragen oder Kommentare – teile sie gerne unten mit oder hinterlasse eine Reaktion.</p>
44

5+
<h4>📱 Bleib auf dem Laufenden</h4>
6+
<p>Folge mir auf einer der folgenden Plattformen, um keine neuen Blog-Posts zu verpassen:</p>
7+
<div class="follow-wrapper">
8+
{{- partial "custom/follow-links.html" . -}}
9+
</div>
10+
511
<h4>❤️ Unterstütze meine Arbeit</h4>
612
<p>Wenn dir der Artikel gefallen hat oder du meine Arbeit generell nützlich findest, freue ich mich über eine kleine Unterstützung, um das Projekt weiterzuführen:</p>
713
<div class="support-wrapper">

layouts/_partials/custom/footer-en.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
<div class="custom-post-footer">
22
<h4>Thoughts or Questions?</h4>
33
<p>I’d love to hear your feedback! Whether you have constructive ideas, questions, or comments, feel free to share them below or leave a reaction.</p>
4+
5+
<h4>📱 Stay Connected</h4>
6+
<p>Follow me on one of the following platforms to make sure you never miss a new blog post:</p>
7+
<div class="follow-wrapper">
8+
{{- partial "custom/follow-links.html" . -}}
9+
</div>
10+
411
<h4>❤️ Support My Work</h4>
512
<p>If you enjoyed reading this article or find my work useful in general, please consider supporting me to help keep things running:</p>
613
<div class="support-wrapper">

0 commit comments

Comments
 (0)