From 96332e5b4a9cce18841db8bdbeb592f9317d465d Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Tue, 6 Jan 2026 12:14:55 +0800 Subject: feat(action-menu): add link to fediverse Former-commit-id: 89d254108a6ecb53ca59d80b0e646b0da7685f1c --- content/posts/weekly/62.md | 1 + i18n/en.yml | 1 + i18n/zh.yml | 1 + .../_partials/posts/action-menu/webmention-section.html | 14 ++++++++++++++ 4 files changed, 17 insertions(+) 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 @@ {{ end }} + + +
+ {{ with $.Params.toot }} + + {{ T "webmention.interactOnFediverse" }} → + + {{ else }} + + {{ T "webmention.interactOnFediverse" }} → + + {{ end }} +

{{ end }} + {{ with $webmentionMentions }}
-- cgit v1.2.3