mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-27 17:12:18 +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 := 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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue