aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2023-01-05 20:27:06 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2023-01-05 20:27:06 +0530
commit58974666f1a35aeae72c8b7adb2ef1dd8c98c319 (patch)
tree5b5a671b6ece6cf6c88ff41ee5f2c94379295595
parentefbe64374708fe253fe988d47a4bd3142d98fe42 (diff)
removed inline CSS for centering blog title, added it to blog.scss instead
-rw-r--r--layouts/blog/single.html3
-rw-r--r--static/scss/blog.scss4
2 files changed, 6 insertions, 1 deletions
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" }}
<div>
- <h1 style="text-align: center;">{{ .Title }}</h1>
+ <h1 id="post-title">{{ .Title }}</h1>
{{ .Content }}
+ <hr/>
</div>
{{ 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;