mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-23 23:42:19 +00:00
update reply by email links
This commit is contained in:
parent
5ecd7653b4
commit
61485f9da2
2 changed files with 3 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue