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; font-size: 1.6rem;
margin: 0; margin: 0;
} }
.featured-image {
display: block;
margin-left: auto;
margin-right: auto;
}
} }
.avatar img { .avatar img {

View File

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