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 := printf "Re: %s" .Title -}}
{{ $subject := urlquery $subject | replaceRE `\+` "%20" }} {{ $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) }} {{ $related := first 3 (where (where .Site.RegularPages.ByDate.Reverse ".Params.tags" "intersect" .Params.tags) "Permalink" "!=" .Permalink) }}
{{ if $related }} {{ if $related }}
## Related articles ## Related articles

View file

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