Skip to content

Commit 5700f0f

Browse files
committed
feat: social media
1 parent 7e9d158 commit 5700f0f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

themes/al/layouts/_default/hire-me.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h1 class="page-title display-1 fw-bold text-primary pb-4 mb-xl-0 w-100">{{ . }}
1616
</p>
1717
<p class="text-light mb-0">
1818
{{ i18n "hire-me.social-media" | markdownify }}
19-
{{ partial "social-media-link" . }}
19+
{{ partial "social-media-link" (dict "social" .Site.Params.social) }}
2020
</p>
2121
<p class="text-light">
2222
{{ i18n "hire-me.form" | markdownify }}

themes/al/layouts/blog/single.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ <h3 class="card-title text-center">{{ i18n "post.about.title" | markdownify }}</
5555
<a href="{{ "/about-me" | relLangURL }}" class="btn btn-primary text-decoration-none">{{ i18n "post.about.link" }}</a>
5656
</p>
5757
<p class="card-text fs-6 mb-3">{{ i18n "post.about.social-media" | markdownify }}</p>
58-
{{ partial "social-media-link" . }}
59-
{{ partial "share-post.html" . }}
58+
{{ partial "social-media-link" (dict "social" .Site.Params.social) }}
59+
{{ partial "share-post" . }}
6060
</div>
6161
</div>
6262
</div>

themes/al/layouts/partials/shared/footer.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<div class="col-12 col-xl-4 text-center text-xl-start pb-4">
55
<h3 class="fs-5 fw-semibold text-uppercase text-primary mb-2">{{ .Site.Title }}</h3>
66
<p class="small text-light mb-0">{{ i18n "footer.social" }}</p>
7-
{{ partial "social-media-link" . }}
7+
{{ partial "social-media-link" (dict "social" .Site.Params.social "class" "justify-content-xl-start") }}
88
</div>
99
<div class="col-12 col-xl-4 text-center text-xl-start pb-4">
1010
<h3 class="fs-5 fw-semibold text-primary mb-2">{{ i18n "footer.links" }}</h3>

themes/al/layouts/partials/social-media-link.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{{ with .Site.Params.social }}
2-
<ul class="d-flex justify-content-center justify-content-xl-start list-unstyled mt-4">
1+
<ul class="d-flex list-unstyled mt-4 {{ .class }}">
2+
{{ with .social }}
33
{{ with .linkedin }}
44
<li class="rounded-circle bg-primary me-2 p-2">
55
<a class="d-flex align-items-center justify-content-center size-16 text-dark" href="{{ . }}" target="_blank" title="linkedin">
@@ -49,5 +49,5 @@
4949
</a>
5050
</li>
5151
{{ end }}
52-
</ul>
5352
{{ end }}
53+
</ul>

0 commit comments

Comments
 (0)