Skip to content

Commit abdf48c

Browse files
committed
Add configurable socials section to single pages, and enable in about page
1 parent 4ba6862 commit abdf48c

6 files changed

Lines changed: 68 additions & 0 deletions

File tree

content/about/index.de.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: "Über mich"
33
layout: "single"
44
nodateline: true
55
noauthor: true
6+
show_social_footer: true
67
---
78

89
## Hallo, ich bin Sebastian! 👋

content/about/index.en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ title: "About Me"
33
layout: "single"
44
nodateline: true
55
noauthor: true
6+
show_social_footer: true
67
---
78

89
## Hi, I'm Sebastian! 👋

i18n/de.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[stayUpdated]
2+
other = "📱 Bleib auf dem Laufenden"
3+
4+
[followMe]
5+
other = "Folge mir auf einer der folgenden Plattformen, um keine neuen Blog-Posts zu verpassen:"
6+
7+
[supportWork]
8+
other = "❤️ Unterstütze meine Arbeit"
9+
10+
[supportDesc]
11+
other = "Wenn dir der Artikel gefallen hat, freue ich mich über eine kleine Unterstützung:"
12+

i18n/en.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[stayUpdated]
2+
other = "📱 Stay Updated"
3+
4+
[followMe]
5+
other = "Follow me on one of the following platforms to make sure you never miss a new blog post:"
6+
7+
[supportWork]
8+
other = "❤️ Support my Work"
9+
10+
[supportDesc]
11+
other = "If you enjoyed this article, I would appreciate a small tip to keep the project going:"
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<hr>
2+
<div class="social-sharing-section">
3+
<h4>{{ T "stayUpdated" | default "📱 Bleib auf dem Laufenden" }}</h4>
4+
<p>{{ T "followMe" | default "Folge mir auf einer der folgenden Plattformen, um keine neuen Blog-Posts zu verpassen:" }}</p>
5+
<div class="follow-wrapper">
6+
{{- partial "custom/follow-links.html" . -}}
7+
</div>
8+
9+
<h4>{{ T "supportWork" | default "❤️ Unterstütze meine Arbeit" }}</h4>
10+
<p>{{ T "supportDesc" | default "Wenn dir der Artikel gefallen hat oder du meine Arbeit generell nützlich findest, freue ich mich über eine kleine Unterstützung:" }}</p>
11+
<div class="support-wrapper">
12+
{{- partial "custom/support-links.html" . -}}
13+
</div>
14+
</div>
15+
<hr>

layouts/single.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{{- define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end -}}
2+
3+
{{- define "content" -}}
4+
{{- $params := .Scratch.Get "params" -}}
5+
<div class="page single special">
6+
{{- /* Title */ -}}
7+
<h1 class="single-title animate__animated animate__pulse animate__faster">
8+
{{- .Title -}}
9+
</h1>
10+
11+
{{- /* Subtitle */ -}}
12+
{{- with $params.subtitle -}}
13+
<h2 class="single-subtitle">{{ . }}</h2>
14+
{{- end -}}
15+
16+
{{- /* Content */ -}}
17+
<div class="content" id="content">
18+
{{- dict "Content" .Content "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}}
19+
</div>
20+
21+
{{ if .Params.show_social_footer }}
22+
{{- partial "custom/social-section.html" . -}}
23+
{{ end }}
24+
25+
{{- /* Comment */ -}}
26+
{{- partial "comment.html" . -}}
27+
</div>
28+
{{- end -}}

0 commit comments

Comments
 (0)