From 6bb97c7ecd28323913b4523ab43ca3aa62f7024a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ng=C3=B4=20Ng=E1=BB=8Dc=20=C4=90=E1=BB=A9c=20Huy?= Date: Sat, 3 Dec 2022 21:25:08 +0700 Subject: [PATCH] Add theme for previous/next post --- assets/css/main.css | 12 ++++++++++++ layouts/_default/single.html | 6 ++++++ 2 files changed, 18 insertions(+) diff --git a/assets/css/main.css b/assets/css/main.css index dd6f14c..1f80f14 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -750,6 +750,18 @@ a.site-title::after { content: "]"; } +a.prev-link::before { + content: "←"; +} + +a.next-link { + float: right; +} + +a.next-link::after { + content: "→"; +} + {{ range site.Params.customCSS }} {{ $custom := resources.Get . }} {{ $custom.Content }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 8e75ac6..965ba61 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -18,9 +18,15 @@ {{ partial "post-info.html" . }} +
+ {{ if and (.Params.categories) (in .Params.categories "blog") }}
+ Would you like to discuss this post? Email me! {{ end }} -- 2.45.2