Merge b1c401fefe32865365dbfa8bff8f0849e76ff327 into c8f72ab1f4911e0aee73cea0fa515a8bddee0c29

This commit is contained in:
Léo Vincent 2024-03-06 15:34:36 -08:00 committed by GitHub
commit 2e2911a34a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 37 additions and 3 deletions

View File

@ -0,0 +1,21 @@
.home-info-container {
display: flex;
align-items: center;
}
.home-info-container img {
flex: 1;
flex-shrink: 0;
height: auto;
max-width: 600px;
margin-right: 20px;
border-radius: 20%;
}
.home-info-container ul {
list-style-type: none;
}
.home-info-container li {
padding-top: 10px;
}

View File

@ -1,10 +1,23 @@
{{- with site.Params.homeInfoParams }}
<article class="first-entry home-info">
<header class="entry-header">
<h1>{{ .Title | markdownify }}</h1>
<h1>{{ .title | markdownify }}</h1>
</header>
<div class="entry-content">
{{ .Content | markdownify }}
<div class="home-info-container">
{{- if .image.url}}
{{- if .image.link -}}
<a href="{{ .image.link | absURL }}" target="_blank" rel="noopener" style="width: 100%">
<img draggable="false" src="{{ .image.url | absURL }}" alt=" {{ .image.title | default "profile image" }}"
title="{{ .image.title }}" height="{{ .image.height | default 150 }}" width="{{ .image.width | default 150 }}" />
</a>
{{- else }}
<img draggable="false" src="{{ .image.url | absURL }}" alt=" {{ .image.title | default "profile image" }}"
title="{{ .image.title }}" height="{{ .image.height | default 150 }}" width="{{ .image.width | default 150 }}" />
{{- end }}
{{- end}}
<div class="entry-content">
{{ .content | markdownify }}
</div>
</div>
<footer class="entry-footer">
{{ partial "social_icons.html" (dict "align" site.Params.homeInfoParams.AlignSocialIconsTo) }}