Remove code duplication for landing page

This commit is contained in:
Ville Lindholm 2024-12-26 12:18:01 +02:00
parent 0878052375
commit 16cdb23fd3
No known key found for this signature in database
3 changed files with 5 additions and 16 deletions

View File

@ -2,6 +2,7 @@
title: "Home" title: "Home"
--- ---
{{< rawhtml >}}
<div style="text-align: center; display: flex; justify-content: center; flex-direction: column; align-items: center; height: 50vh;"> <div style="text-align: center; display: flex; justify-content: center; flex-direction: column; align-items: center; height: 50vh;">
<img src="/images/portrait.jpeg" alt="Picture of Ville Lindholm" style="border-radius: 50%; width: 150px; height: 150px;" /> <img src="/images/portrait.jpeg" alt="Picture of Ville Lindholm" style="border-radius: 50%; width: 150px; height: 150px;" />
<hgroup> <hgroup>
@ -15,3 +16,4 @@ title: "Home"
<a href="https://www.linkedin.com/in/villelindholm/"><i class='bx bxl-linkedin-square'></i></a> <a href="https://www.linkedin.com/in/villelindholm/"><i class='bx bxl-linkedin-square'></i></a>
</div> </div>
</div> </div>
{{< /rawhtml >}}

View File

@ -1,17 +1,3 @@
{{ define "main" }} {{ define "main" }}
<div {{ .Content }}
style="text-align: center; display: flex; justify-content: center; flex-direction: column; align-items: center; height: 50vh;">
<img src="/images/portrait.jpeg" alt="Picture of Ville Lindholm"
style="border-radius: 50%; width: 150px; height: 150px;" />
<hgroup>
<h1>Ville Lindholm</h1>
<p>Full-stack Software engineer</p>
<p>Helsinki, Finland</p>
</hgroup>
<div style="display: flex;">
<a href="https://github.com/vlindhol"><i class='bx bxl-github'></i></a>
<a href="https://x.com/lindholm_dev"><i class='bx bxl-twitter'></i></a>
<a href="https://www.linkedin.com/in/villelindholm/"><i class='bx bxl-linkedin-square'></i></a>
</div>
</div>
{{ end }} {{ end }}

View File

@ -0,0 +1 @@
{{ .Inner | safeHTML }}