diff options
Diffstat (limited to 'layouts/partials/profile.html')
-rw-r--r-- | layouts/partials/profile.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/layouts/partials/profile.html b/layouts/partials/profile.html new file mode 100644 index 0000000..d018103 --- /dev/null +++ b/layouts/partials/profile.html @@ -0,0 +1,22 @@ +{{/* layouts/partials/profile.html */}} +<div class="flex flex-col items-center mb-8"> + {{ with .Params.profileImage }} + {{/* strip leading “/” if present, otherwise leave as-is */}} + {{ $img := replaceRE "^/" "" . }} + <img src="{{ $img }}" + alt="{{ $.Params.name }}" + class="profile-pic mb-4"> + {{ end }} + <h1 class="text-3xl font-bold mb-2 text-center" style="color: var(--text-color)"> + {{ .Params.name }} + </h1> + <p class="text-center opacity-80 mb-6">{{ .Params.description }}</p> + + <div class="flex flex-wrap justify-center gap-4 mb-8 social-icons"> + {{ range .Params.socials }} + <a href="{{ .url }}" class="text-xl" target="_blank" rel="noopener"> + <i class="{{ .icon }} icon"></i> + </a> + {{ end }} + </div> +</div>
\ No newline at end of file |