summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2026-01-06 12:14:55 +0800
committerBigCoke233 <hi@guhub.cn>2026-01-06 12:14:55 +0800
commit89d254108a6ecb53ca59d80b0e646b0da7685f1c (patch)
treeef65fc0d0bb4dc5b92dcc47e3c5f1f7102764421
parent49f9e6155f7de159329dc44e76a16a33cf8bfed7 (diff)
feat(action-menu): add link to fediverse
-rw-r--r--content/posts/weekly/62.md1
-rw-r--r--i18n/en.yml1
-rw-r--r--i18n/zh.yml1
-rw-r--r--layouts/_partials/posts/action-menu/webmention-section.html14
4 files changed, 17 insertions, 0 deletions
diff --git a/content/posts/weekly/62.md b/content/posts/weekly/62.md
index 1b955ed5..d980f4a2 100644
--- a/content/posts/weekly/62.md
+++ b/content/posts/weekly/62.md
@@ -9,6 +9,7 @@ date: 2026-01-05 10:13:50
categories: 稻草人周刊
draft: false
toc: true
+toot: https://c7.io/@eltrac/115840087983869751
---
{{< music cover="https://image.guhub.cn//uPic/2025/12/29161349-Mathis-Wonderful.jpg" title="Wonderful, Wonderful" artist="Johnny Mathis" apple="https://music.apple.com/cn/album/wonderful-wonderful-with-ray-conniff-single-version/201413403?i=201414524t" >}}
diff --git a/i18n/en.yml b/i18n/en.yml
index 766c00fc..f7bc5db4 100644
--- a/i18n/en.yml
+++ b/i18n/en.yml
@@ -65,3 +65,4 @@ webmention:
submit: Ping me!
likedBy: %d people liked this page
mentionsHeading: Mentions
+ interactOnFediverse: Interact on Fediverse
diff --git a/i18n/zh.yml b/i18n/zh.yml
index 0befc7b6..d0d69c40 100644
--- a/i18n/zh.yml
+++ b/i18n/zh.yml
@@ -64,3 +64,4 @@ webmention:
submit: 提交
likedBy: %d 人喜欢了这篇文章
mentionsHeading: 提及这篇文章的
+ interactOnFediverse: 在 Fediverse 上互动
diff --git a/layouts/_partials/posts/action-menu/webmention-section.html b/layouts/_partials/posts/action-menu/webmention-section.html
index 441e2491..81e90e3c 100644
--- a/layouts/_partials/posts/action-menu/webmention-section.html
+++ b/layouts/_partials/posts/action-menu/webmention-section.html
@@ -57,9 +57,23 @@
</div>
{{ end }}
</section>
+
+ <!-- Fediverse interaction link -->
+ <section class="text-secondary text-sm">
+ {{ with $.Params.toot }}
+ <a href="{{ . }}" target="_blank" rel="noopener noreferrer" class="text-secondary hover:underline">
+ {{ T "webmention.interactOnFediverse" }} →
+ </a>
+ {{ else }}
+ <a href="https://c7.io/@eltrac/tagged/%E5%8D%9A%E5%AE%A2%E6%9B%B4%E6%96%B0" target="_blank" rel="noopener noreferrer" class="text-secondary hover:underline">
+ {{ T "webmention.interactOnFediverse" }} →
+ </a>
+ {{ end }}
+ </section>
<hr />
{{ end }}
+
<!-- mentions -->
{{ with $webmentionMentions }}
<section class="markdown-body">