diff options
| author | eltrac <hi@eltr.ac> | 2026-03-15 22:02:25 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-03-15 22:02:25 +0800 |
| commit | 7d6a341a69b90731ba271e5dd313faf487064fbf (patch) | |
| tree | 6dc606b15b3cefbce9b9d6748dad46f94156e975 | |
| parent | 6dc58709c28dd729e5d26836e0bb75b0c1470c6c (diff) | |
feat(i18n): view on fediverse button
| -rw-r--r-- | i18n/en.toml | 1 | ||||
| -rw-r--r-- | i18n/zh.toml | 1 | ||||
| -rw-r--r-- | layouts/_shortcodes/fedicard.html | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/i18n/en.toml b/i18n/en.toml index 27426b41..82391c89 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -8,6 +8,7 @@ back2top = "I'll take you up!" emailMe = "If you prefer one-on-one communication, or just want to say hello, feel free to email me at" rss_comment_link = "Come and leave a comment" viewExternalSource = "View External Source" +ViewOnFediverse = "View on Fediverse" [archivePage] postCountMonthly = "{{ . }} POSTS" diff --git a/i18n/zh.toml b/i18n/zh.toml index e268cb74..c08ee278 100644 --- a/i18n/zh.toml +++ b/i18n/zh.toml @@ -9,6 +9,7 @@ back2top = "我带你上去!" emailMe = "如果你偏好一对一的沟通,或者只是想打个招呼,欢迎发邮件到" rss_comment_link = "读完啦?来坐坐吧" viewExternalSource = "查看外部来源和完整互动" +ViewOnFediverse = "在联邦宇宙查看" [theme] auto = "自动" diff --git a/layouts/_shortcodes/fedicard.html b/layouts/_shortcodes/fedicard.html index d8cbc453..1f10ebeb 100644 --- a/layouts/_shortcodes/fedicard.html +++ b/layouts/_shortcodes/fedicard.html @@ -127,7 +127,7 @@ <div style="border-top: 1px solid var(--color-neso-deco3); padding-top: 12px; margin-top: 16px; display: flex; justify-content: space-between; align-items: center;"> <time class="social-card-time" datetime="{{ $publishedAt.Format "2006-01-02T15:04:05Z" }}" style="color: var(--color-neso-fg3); font-size: 0.9rem;">{{ $publishedAt.Format "Jan 2, 2006 at 3:04 PM UTC" }}</time> - <a href="{{ $url }}" target="_blank" style="color: #6364ff; font-weight: 600; text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease-in-out;" onmouseover="this.style.color='#8A8BFF'" onmouseout="this.style.color='#6364ff'">View on Fediverse</a> + <a href="{{ $url }}" target="_blank" style="color: #6364ff; font-weight: 600; text-decoration: none; font-size: 0.9rem; transition: color 0.2s ease-in-out;" onmouseover="this.style.color='#8A8BFF'" onmouseout="this.style.color='#6364ff'">{{ T "ViewOnFediverse" . }}</a> </div> </div> |
