From bf2a6baa675fd7d45c6118b57e545a4494da2f39 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sat, 2 Mar 2024 13:22:33 -0600 Subject: [PATCH] gemini: include post title in mailto reply link --- layouts/_default/single.gmi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 9462f0b..29e32ab 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -33,9 +33,10 @@ {{- $scratch.Set "ref" (add $ref 1) -}} {{- end -}} {{- $content := $scratch.Get "content" | replaceRE `\[(.+?)\]\((.+?)\) #(\d+)` "$1 [$3]" -}}{{/* replace inline links with footnote */}} -{{- $content | safeHTML -}} +{{- $content | safeHTML }} --- -=> mailto:blog@runtimeterror.dev 📧 Reply via email +{{ $subject := printf "Re: %s" .Title }} +=> mailto:blog@runtimeterror.dev?subject={{ urlquery $subject | replaceRE `\+` "%20" }} 📧 Reply via email ## Bibliography {{ $scratch.Set "ref" 1 -}}