From b87a45e15bb507e0f314d5c91c529e6d53e778a8 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Mon, 6 Nov 2023 17:20:59 -0600 Subject: [PATCH] Add: "More" links after post summaries Closes #392. --- assets/theme-css/posts.css | 6 ++++++ layouts/partials/posts/summary.html | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/assets/theme-css/posts.css b/assets/theme-css/posts.css index 7a59bc9b..95989cf8 100644 --- a/assets/theme-css/posts.css +++ b/assets/theme-css/posts.css @@ -85,6 +85,12 @@ div.MathJax_Display { margin: 0.5em; } +.read-more { + margin-top: 0.5em; + font-variant-caps: small-caps; + font-style: italic; +} + .tag-cloud { position: sticky; align-self: flex-start; diff --git a/layouts/partials/posts/summary.html b/layouts/partials/posts/summary.html index 91df7c3d..2d68102c 100644 --- a/layouts/partials/posts/summary.html +++ b/layouts/partials/posts/summary.html @@ -3,5 +3,8 @@ {{ with $featuredImage }} {{ end }} - {{ .Summary }} + {{ strings.Chomp .Summary }} +
+ more ⟶ +