truncate email reply address

This commit is contained in:
John Bowdre 2024-04-27 13:21:33 -05:00
parent 26a37d52df
commit 7e432435a2

View file

@ -58,7 +58,7 @@
{{- $emailReplies = false }} {{- $emailReplies = false }}
{{- end }} {{- end }}
{{- if and (eq .Site.Params.comments true) (ne $emailReplies false) }} {{- if and (eq .Site.Params.comments true) (ne $emailReplies false) }}
<span class="post_email_reply"><a href="mailto:replies-{{ .Title | urlize }}@runtimeterror.dev?Subject=Re: {{ .Title }}">📧 Reply via email</a></span> <span class="post_email_reply"><a href="mailto:{{ .Title | truncate 40 | urlize}}@runtimeterror.dev?Subject=Re: {{ .Title }}">📧 Reply via email</a></span>
{{- end }} {{- end }}
<br><details><summary>Expand comments</summary> <br><details><summary>Expand comments</summary>
{{- partial "comments" . }} {{- partial "comments" . }}