gemini: include post title in mailto reply link

This commit is contained in:
John Bowdre 2024-03-02 13:22:33 -06:00
parent 9f70775a13
commit 25a578064c

View file

@ -33,9 +33,10 @@
{{- $scratch.Set "ref" (add $ref 1) -}} {{- $scratch.Set "ref" (add $ref 1) -}}
{{- end -}} {{- end -}}
{{- $content := $scratch.Get "content" | replaceRE `\[(.+?)\]\((.+?)\) #(\d+)` "$1 [$3]" -}}{{/* replace inline links with footnote */}} {{- $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 ## Bibliography
{{ $scratch.Set "ref" 1 -}} {{ $scratch.Set "ref" 1 -}}