From 309b6053f4b92922905bf7ba46553b980c58e266 Mon Sep 17 00:00:00 2001 From: Mansoor Date: Sat, 6 Jan 2024 17:32:54 -0500 Subject: [PATCH 1/2] copy the layout file from theme --- layouts/posts/single.html | 53 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 layouts/posts/single.html diff --git a/layouts/posts/single.html b/layouts/posts/single.html new file mode 100644 index 0000000..f89987c --- /dev/null +++ b/layouts/posts/single.html @@ -0,0 +1,53 @@ +{{ define "title" }} + {{ .Title }} ยท {{ .Site.Title }} +{{ end }} +{{ define "content" }} +
+
+
+
+

+ + {{ .Title }} + +

+
+ +
+ +
+ {{ if .Params.featuredImage }} + Featured image + {{ end }} + {{ .Content }} +
+ + +
+ {{ partial "posts/series.html" . }} + {{ partial "posts/disqus.html" . }} + {{ partial "posts/commento.html" . }} + {{ partial "posts/utterances.html" . }} + {{ partial "posts/giscus.html" . }} +
+
+ + {{ partial "posts/math.html" . }} +
+{{ end }} From 5959b183e2cf42f5e5a31302c730a8789b135ae2 Mon Sep 17 00:00:00 2001 From: Mansoor Date: Sat, 6 Jan 2024 18:30:32 -0500 Subject: [PATCH 2/2] custom css --- assets/css/custom.css | 4 ++++ config.toml | 3 +++ layouts/posts/single.html | 11 ++++++++++- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 assets/css/custom.css diff --git a/assets/css/custom.css b/assets/css/custom.css new file mode 100644 index 0000000..0bb3b13 --- /dev/null +++ b/assets/css/custom.css @@ -0,0 +1,4 @@ +.centered-improve-link { + text-align: center; + margin-top: 15px; +} diff --git a/config.toml b/config.toml index ffeebae..399fcf8 100644 --- a/config.toml +++ b/config.toml @@ -25,6 +25,9 @@ style = "github-dark" favicon_32 = "images/favicon.png" # favicon_16 = "/img/favicon-16x16.png" + gitRepo = "https://github.com/MansoorMajeed/esc.sh" + + customCSS = ["/css/custom.css"] since = 2012 diff --git a/layouts/posts/single.html b/layouts/posts/single.html index f89987c..2935cf5 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -28,9 +28,18 @@

{{ with .GetTerms "authors" }}{{ partial "taxonomy/authors.html" . }}{{ end }} {{ with .GetTerms "categories" }}{{ partial "taxonomy/categories.html" . }}{{ end }} {{ with .GetTerms "tags" }}{{ partial "taxonomy/tags.html" . }}{{ end }} + + -
{{ if .Params.featuredImage }} Featured image