From 954a31edd0923339530ea8a26aaa2eab9f0dfa6a Mon Sep 17 00:00:00 2001 From: ray Date: Fri, 14 Feb 2020 20:07:59 +0000 Subject: [PATCH] center featured image --- assets/scss/_content.scss | 5 +++++ layouts/posts/single.html | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/scss/_content.scss b/assets/scss/_content.scss index 1a09e1e..3f034cd 100644 --- a/assets/scss/_content.scss +++ b/assets/scss/_content.scss @@ -56,6 +56,11 @@ font-size: 1.6rem; margin: 0; } + .featured-image { + display: block; + margin-left: auto; + margin-right: auto; + } } .avatar img { diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 1e7d064..2e54e39 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -28,7 +28,7 @@
{{ if .Params.featured_image }} - Featured image + Featured image {{ end }} {{ .Content }}