center featured image

This commit is contained in:
ray 2020-02-14 20:07:59 +00:00
parent ddcf1efd52
commit 954a31edd0
2 changed files with 6 additions and 1 deletions

View File

@ -56,6 +56,11 @@
font-size: 1.6rem;
margin: 0;
}
.featured-image {
display: block;
margin-left: auto;
margin-right: auto;
}
}
.avatar img {

View File

@ -28,7 +28,7 @@
<div>
{{ if .Params.featured_image }}
<img src='{{ .Params.featured_image }}' alt="Featured image"/>
<img class="featured-image" src='{{ .Params.featured_image }}' alt="Featured image"/>
{{ end }}
{{ .Content }}
</div>