update: custom profile in home info

This commit is contained in:
joundy 2022-09-03 23:22:21 +07:00
parent c0b7ea5f4b
commit 4e99a3184b
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,17 @@
.home-info__profile-img {
display: flex;
justify-content: center;
}
.home-info__profile-img > img{
border-radius: 100%;
margin-bottom: 16px;
}
.entry-header > h1{
text-align: center;
}
.entry-header {
margin-bottom: 24px;
}

View File

@ -1,5 +1,9 @@
{{- with site.Params.homeInfoParams }} {{- with site.Params.homeInfoParams }}
<article class="first-entry home-info"> <article class="first-entry home-info">
<div class="home-info__profile-img">
<img draggable="false" src="{{ .ImageUrl | absURL }}" alt="{{ .imageTitle | default "profile image" }}"
height="{{ .imageHeight | default 150 }}" width="{{ .imageWidth | default 150 }}" />
</div>
<header class="entry-header"> <header class="entry-header">
<h1>{{ .Title | markdownify }}</h1> <h1>{{ .Title | markdownify }}</h1>
</header> </header>