update: custom profile in home info
This commit is contained in:
parent
c0b7ea5f4b
commit
4e99a3184b
17
assets/css/extended/custom.css
Normal file
17
assets/css/extended/custom.css
Normal 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;
|
||||
}
|
@ -1,5 +1,9 @@
|
||||
{{- with site.Params.homeInfoParams }}
|
||||
<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">
|
||||
<h1>{{ .Title | markdownify }}</h1>
|
||||
</header>
|
||||
|
Loading…
x
Reference in New Issue
Block a user