update reply by email links

This commit is contained in:
John Bowdre 2024-06-19 10:12:55 -05:00
parent 5ecd7653b4
commit 61485f9da2
2 changed files with 3 additions and 9 deletions

View file

@ -46,11 +46,8 @@
---
{{ $subject := printf "Re: %s" .Title -}}
{{ $subject := urlquery $subject | replaceRE `\+` "%20" }}
{{ $path := .Page.RelPermalink | path.Dir -}}
{{ $path := strings.Trim $path "/" -}}
{{ $address := printf "blogreply.%s@%s" $path "runtimeterror.dev" -}}
=> mailto:{{ $address }}?subject={{ $subject }} 📧 Reply by email
=> mailto:wheel.east.brief@clkdmail.com?subject={{ $subject }} 📧 Reply by email
{{ $related := first 3 (where (where .Site.RegularPages.ByDate.Reverse ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
{{ if $related }}
## Related articles

View file

@ -39,13 +39,10 @@
{{- else if eq .Params.reply false }}
{{- $reply = false }}
{{- end }}
{{- if or (eq $reply true) (eq .Site.Params.analytics "true") }}
{{- if eq $reply true }}
<hr>
{{- if (eq $reply true) }}
{{- $path := .Page.RelPermalink | path.Dir }}
{{- $path := strings.Trim $path "/" }}
{{- $address := printf "blogreply.%s@%s" $path "runtimeterror.dev" }}
<span class="post_email_reply"><a href="mailto:{{ $address }}?Subject=Re: {{ .Title }}">📧 Reply by email</a></span>
<span class="post_email_reply"><a href="mailto:wheel.east.brief@clkdmail.com?Subject=Re: {{ .Title }}">📧 Reply by email</a></span>
{{- end }}
{{- end }}
<footer class="content__footer"></footer>