Skip to content

Commit 38586dc

Browse files
authored
Merge pull request #40 from embik/add-authors
Display authors and their socials on kcp blog posts
2 parents 1d5ae6b + 06b545e commit 38586dc

File tree

5 files changed

+58
-0
lines changed

5 files changed

+58
-0
lines changed

content/en/blog/news/2024-01-joining-the-cncf-sandbox.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ tags:
66
- cncf
77
- sandbox
88
- community
9+
authors:
10+
- Marvin Beckers
911
---
1012

1113
With the new year still fresh, we have big news to share. We are thrilled to announce that kcp has joined the CNCF and completed onboarding as a CNCF Sandbox project. A huge thanks to the sponsors of [our application](https://github.com/cncf/sandbox/issues/47). It is an honor to be among the greatest open source projects that our ecosystem has to offer!

content/en/blog/news/2024-03-kcp-at-kubecon-paris.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ tags:
1010
- cloudnativecon
1111
- talks
1212
- conference
13+
authors:
14+
- Marvin Beckers
1315
---
1416

1517
[KubeCon + CloudNativeCon Europe 2024](https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/) is around the corner and we can't wait to see you in Paris!

data/authors.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
- name: Marvin Beckers
2+
title: Team Lead at Kubermatic
3+
picture: /images/authors/marvin_beckers.jpeg
4+
socials:
5+
github: https://github.com/embik
6+
linkedin: https://www.linkedin.com/in/marvinbeckers/
12.2 KB
Loading

themes/kcp/layouts/_default/single.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,53 @@ <h1 class="text-3xl font-extrabold sm:text-4xl">{{ .Title }}</h1>
88
<div class="leading-7 mt-8 space-y-4 [&>h1]:text-2xl [&>h1]:font-bold [&>h2]:text-xl [&>h2]:font-bold [&>h3]:text-lg [&>h3]:font-bold [&>ul]:list-disc [&>ul]:ml-8 [&>ul>*>a]:text-cyan-600 [&>ol]:list-decimal [&>ol]:ml-8 [&>*>a]:text-cyan-600 [&>*>img]:m-4">
99
{{ .Content }}
1010
</div>
11+
{{ if .Params.authors }}
12+
<div class="mt-12">
13+
{{ $authors := .Site.Data.authors }}
14+
{{ range .Params.authors }}
15+
<div class="mx-auto flex items-center gap-6 my-4">
16+
{{ $author := where $authors "name" . }}
17+
{{ with (index $author 0) }}
18+
{{ with .picture }}
19+
<img src="{{ . }}" class="w-14 h-14 rounded-full shadow-lg">
20+
{{ end }}
21+
<div class="min-w-0">
22+
<div class="font-bold">{{ .name }}</div>
23+
{{ with .title }}
24+
<div class="text-base">{{ . }}</div>
25+
{{ end }}
26+
</div>
27+
{{ with .socials }}
28+
<div class="grow">
29+
<ul class="mt-2 mx-auto flex gap-4 justify-end mr-12">
30+
{{ range $social, $url := . }}
31+
<li>
32+
<a
33+
href="{{ $url }}"
34+
rel="noreferrer"
35+
target="_blank"
36+
class="text-gray-700 transition hover:opacity-75"
37+
>
38+
<span class="sr-only">{{ $social }}</span>
39+
40+
<svg
41+
class="h-5 w-5"
42+
fill="currentColor"
43+
viewBox="0 0 24 24"
44+
aria-hidden="true"
45+
>
46+
{{ partial (printf "flowbite-icons/src/solid/brands/%s.svg" $social) }}
47+
</svg>
48+
</a>
49+
</li>
50+
{{ end }}
51+
</ul>
52+
</div>
53+
{{ end }}
54+
</div>
55+
{{ end }}
56+
{{ end }}
57+
</div>
58+
{{ end }}
1159
</div>
1260
{{ end }}

0 commit comments

Comments
 (0)