From 58974666f1a35aeae72c8b7adb2ef1dd8c98c319 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 5 Jan 2023 20:27:06 +0530 Subject: removed inline CSS for centering blog title, added it to blog.scss instead --- layouts/blog/single.html | 3 ++- static/scss/blog.scss | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 155fc6b..22f5e43 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -1,6 +1,7 @@ {{ define "main" }}
-

{{ .Title }}

+

{{ .Title }}

{{ .Content }} +
{{ end }} diff --git a/static/scss/blog.scss b/static/scss/blog.scss index f1360bb..43fc736 100644 --- a/static/scss/blog.scss +++ b/static/scss/blog.scss @@ -71,6 +71,10 @@ main img { border: 1px solid $headingColor4; } +#post-title { + text-align: center; +} + // linked images have the same border color as a link main a img { border: 1px solid $linkColor; -- cgit v1.2.3