diff options
| -rw-r--r-- | i18n/en.toml | 1 | ||||
| -rw-r--r-- | i18n/zh.toml | 1 | ||||
| -rw-r--r-- | layouts/_partials/posts/interaction-buttons.html | 3 |
3 files changed, 4 insertions, 1 deletions
diff --git a/i18n/en.toml b/i18n/en.toml index 1c1838d..5723e57 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -96,3 +96,4 @@ note = "This website doesn’t have a comment section. You can discuss this page sendEmail = "Email me" goHere = "go here" replyVia = "Reply via" +mailSubject = "Re: %s" diff --git a/i18n/zh.toml b/i18n/zh.toml index d9eddcd..56485be 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -98,3 +98,4 @@ note = "「極客死亡計劃」没有评论区,你可以前往%s参与讨论ï sendEmail = "发邮件" goHere = "去这里" replyVia = "回复:" +mailSubject = "回复:%s" diff --git a/layouts/_partials/posts/interaction-buttons.html b/layouts/_partials/posts/interaction-buttons.html index a4b7bd8..7dd13ce 100644 --- a/layouts/_partials/posts/interaction-buttons.html +++ b/layouts/_partials/posts/interaction-buttons.html @@ -11,7 +11,8 @@ {{ T "interact.replyVia" }} </p> <div id="interaction-email" class="{{ $itemClasses }}"> - <a href="mailto:hi@eltr.ac?subject=回复:{{ .Title }}" + <a href="{{ printf "mailto:hi@eltr.ac?subject=%s" + (printf (T "interact.mailSubject") .Title)}}" class="{{ $itemLinkClasses }}"> <img src="/icons/mail.svg" width="16" height="16"> Email </a> |
