From d37d8322740c3d04227bc57064111074d21c8955 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Sat, 12 Feb 2022 21:49:55 -0800 Subject: [PATCH] Truncate webmention titles, add length indicators --- layouts/posts/single.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index ff8e1c2..c26e5bc 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -4,7 +4,7 @@

{{ .Title }}

{{ if lt .Date .Lastmod -}} - Posted by {{- partial "indieweb-author.html" -}} on his Website + Posted by {{- partial "indieweb-author.html" -}} on his Website {{ with .OutputFormats.Get "gemtext" -}} and Gemini capsule {{- end -}} @@ -16,6 +16,8 @@ and Gemini capsule {{- end -}} {{ end }} +
+ {{ .WordCount }} words, a {{ .ReadingTime }} minute read
{{ partial "processed-content" . -}} @@ -58,9 +60,9 @@ {{- else -}} {{- if $webmention.title -}} - {{- $webmention.title -}} + {{- $webmention.title | truncate 200 -}} {{- else -}} - {{- $webmention.source -}} + {{- $webmention.source | truncate 35 -}} {{- end -}} {{- if $webmention.author_name }}