summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreltrac <hi@eltr.ac>2026-05-01 14:03:18 +0800
committereltrac <hi@eltr.ac>2026-05-01 14:03:18 +0800
commit37b796da0f1e0f0d27ceeaf7598dedcca4070dd8 (patch)
treeef4016654a2610bc499565cad01dd08bee8a4708
parentefff2ce8fa3becac326f2b7d44bff9ee49567286 (diff)
feat(ui): add "Reply via" before email and fedi links
-rw-r--r--i18n/en.toml1
-rw-r--r--i18n/zh.toml1
-rw-r--r--layouts/_partials/posts/interaction-buttons.html5
3 files changed, 6 insertions, 1 deletions
diff --git a/i18n/en.toml b/i18n/en.toml
index bd37da9..1c1838d 100644
--- a/i18n/en.toml
+++ b/i18n/en.toml
@@ -95,3 +95,4 @@ openIn = "Open in {{ . }}"
note = "This website doesn’t have a comment section. You can discuss this page on %s, or %s. %s works, too. If you wrote a post on your site in reply to this page, %s to submit it."
sendEmail = "Email me"
goHere = "go here"
+replyVia = "Reply via"
diff --git a/i18n/zh.toml b/i18n/zh.toml
index 2329fc3..d9eddcd 100644
--- a/i18n/zh.toml
+++ b/i18n/zh.toml
@@ -97,3 +97,4 @@ openIn = "在 {{ . }} 中打开"
note = "「極客死亡計劃」没有评论区,你可以前往%s参与讨论,或者给我%s。本站也支持 %s 规范,如果你写了一篇文章回应此文,可以%s用表单提交。目前只有 Webmention 会显示在网站上。"
sendEmail = "发邮件"
goHere = "去这里"
+replyVia = "回复:"
diff --git a/layouts/_partials/posts/interaction-buttons.html b/layouts/_partials/posts/interaction-buttons.html
index 524254e..a4b7bd8 100644
--- a/layouts/_partials/posts/interaction-buttons.html
+++ b/layouts/_partials/posts/interaction-buttons.html
@@ -6,7 +6,10 @@
<div id="interaction-like" class="{{ $itemClasses }}">
{{ partial "posts/like" . }}
</div>
- <div class="flex gap-2">
+ <div class="flex gap-2 items-center">
+ <p class="text-secondary text-xs m-0">
+ {{ T "interact.replyVia" }}
+ </p>
<div id="interaction-email" class="{{ $itemClasses }}">
<a href="mailto:hi@eltr.ac?subject=回复:{{ .Title }}"
class="{{ $itemLinkClasses }}">