gemini: include post title in mailto reply link

This commit is contained in:
John Bowdre 2024-03-02 13:22:33 -06:00
parent b23af4eb46
commit bf2a6baa67

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 -}}