From 61485f9da214fd43caa39926195cdf02e27fe6a3 Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Wed, 19 Jun 2024 10:12:55 -0500 Subject: [PATCH] update reply by email links --- layouts/_default/single.gmi | 5 +---- layouts/_default/single.html | 7 ++----- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index 345baae..153d6da 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -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 diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 11c8247..802737d 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -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 }}
{{- if (eq $reply true) }} - {{- $path := .Page.RelPermalink | path.Dir }} - {{- $path := strings.Trim $path "/" }} - {{- $address := printf "blogreply.%s@%s" $path "runtimeterror.dev" }} - 📧 Reply by email + 📧 Reply by email {{- end }} {{- end }}