Skip to content

PasteFerry (隔空贴): clipboard and file sync across macOS, Windows and Linux. Direct-first, end-to-end encrypted. Optional official access: no server to host. Independent self-hosting remains available.

fix(site): show current release in homepage announcement

baiyuze768ec24d0143
diff --git a/docs/en/index.html b/docs/en/index.html
index 6095663..bb3a3f8 100644
--- a/docs/en/index.html
+++ b/docs/en/index.html
@@ -140,7 +140,7 @@
<main id="main">
<section class="hero">
<div class="wrap">
- <a class="release-note" href="features/#phone">New in 2.8: send files between Android and your computer →</a>
+ <a class="release-note" href="https://github.com/baiyuze/pasteferry/releases/tag/v2.9.0">New in 2.9: CLI queries and Homebrew installation →</a>
<h1 class="display">Your computers. Your phone.<br>Everything within reach.</h1>
<p class="lede">Copy and paste between computers. Find past clips. Send photos and files between computers and Android. Mac, Windows, Linux and Android, with no shared account. Phones can also scan a code to use the web page. Android and web work on the same network.</p>
<div class="cta">
diff --git a/docs/index.html b/docs/index.html
index 0c9a8da..4a84d7d 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -165,7 +165,7 @@
<main id="main">
<section class="hero">
<div class="wrap">
- <a class="release-note" href="features/#phone">2.8 新功能:安卓隔空传送,手机电脑互传文件 →</a>
+ <a class="release-note" href="https://github.com/baiyuze/pasteferry/releases/tag/v2.9.0">2.9 新功能:命令行查询,支持 Homebrew 安装 →</a>
<h1 class="display">电脑与手机,<br>内容随手互通。</h1>
<p class="lede">电脑间复制粘贴、找回历史;电脑与安卓互传照片和文件。Mac、Windows、Linux、安卓都能用,不用同一个账号。手机也能扫码打开网页;安卓和网页限同一网络。</p>
<div class="cta">
diff --git a/docs/ja/index.html b/docs/ja/index.html
index 399f6ae..65fa6f5 100644
--- a/docs/ja/index.html
+++ b/docs/ja/index.html
@@ -140,7 +140,7 @@
<main id="main">
<section class="hero">
<div class="wrap">
- <a class="release-note" href="features/#phone">2.8 の新機能:Android とパソコンでファイル転送 →</a>
+ <a class="release-note" href="https://github.com/baiyuze/pasteferry/releases/tag/v2.9.0">2.9 の新機能:CLI での状態確認と Homebrew インストール →</a>
<h1 class="display">パソコンとスマホを、<br>もっと近くに。</h1>
<p class="lede">パソコン間でコピーと貼り付け、過去の履歴を検索。パソコンとAndroid間で写真やファイルを転送。Mac・Windows・Linux・Androidに対応し、共通アカウントは不要。スマホはQRコードでWeb版も使えます。AndroidとWeb版は同一ネットワーク内で使用します。</p>
<div class="cta">
diff --git a/docs/zh-hk/index.html b/docs/zh-hk/index.html
index 9468259..a801a91 100644
--- a/docs/zh-hk/index.html
+++ b/docs/zh-hk/index.html
@@ -140,7 +140,7 @@
<main id="main">
<section class="hero">
<div class="wrap">
- <a class="release-note" href="features/#phone">2.8 新功能:安卓隔空傳送,手機電腦互傳檔案 →</a>
+ <a class="release-note" href="https://github.com/baiyuze/pasteferry/releases/tag/v2.9.0">2.9 新功能:命令列查詢,支援 Homebrew 安裝 →</a>
<h1 class="display">電腦與手機,<br>內容隨手互通。</h1>
<p class="lede">電腦間複製貼上、找回記錄;電腦與安卓互傳相片和檔案。Mac、Windows、Linux、安卓都能用,毋須使用同一帳號。手機也能掃碼開啟網頁;安卓與網頁限同一網絡。</p>
<div class="cta">
diff --git a/docs/zh-tw/index.html b/docs/zh-tw/index.html
index dcbe2c7..b564459 100644
--- a/docs/zh-tw/index.html
+++ b/docs/zh-tw/index.html
@@ -140,7 +140,7 @@
<main id="main">
<section class="hero">
<div class="wrap">
- <a class="release-note" href="features/#phone">2.8 新功能:安卓隔空傳送,手機電腦互傳檔案 →</a>
+ <a class="release-note" href="https://github.com/baiyuze/pasteferry/releases/tag/v2.9.0">2.9 新功能:命令列查詢,支援 Homebrew 安裝 →</a>
<h1 class="display">電腦與手機,<br>內容隨手互通。</h1>
<p class="lede">電腦間複製貼上、找回記錄;電腦與安卓互傳照片和檔案。Mac、Windows、Linux、安卓都能用,不必使用同一帳號。手機也能掃碼開啟網頁;安卓與網頁限同一網路。</p>
<div class="cta">
diff --git a/tools/site/build.py b/tools/site/build.py
index 559f57e..6ff5887 100644
--- a/tools/site/build.py
+++ b/tools/site/build.py
@@ -537,6 +537,7 @@ def home(code: str) -> str:
a = up + "assets/"
shots = shots_dir(code)
+ badge = fill(f["badge"], {"version": ".".join(VERSION.split(".")[:2])})
ours = ' class="ours"'
compare_head = "".join(
f'<th scope="col"{ours if i == 0 else ""}>{h}</th>' for i, h in enumerate(c["compare_cols"]))
@@ -571,7 +572,7 @@ def home(code: str) -> str:
<main id="main">
<section class="hero">
<div class="wrap">
- <a class="release-note" href="{FEATURES}#phone">{keys(f["badge"])}</a>
+ <a class="release-note" href="{REPO}/releases/tag/v{VERSION}">{keys(badge)}</a>
<h1 class="display">{c["h1"]}</h1>
<p class="lede">{c["lede"]}</p>{cta(c, "", START, tour_ui["watch"])}
<div class="stage" data-play role="img" aria-label="{esc(c["stage_label"])}">
diff --git a/tools/site/content/features.py b/tools/site/content/features.py
index 5491108..30c6ae5 100644
--- a/tools/site/content/features.py
+++ b/tools/site/content/features.py
@@ -29,11 +29,12 @@ COPY = {
"star_button": ("在 GitHub 上点 Star", "在 GitHub 上點 Star", "在 GitHub 上按 Star", "Star on GitHub", "GitHub でスター"),
# ── 首页 ──
- "badge": ('2.8 新功能:安卓隔空传送,手机电脑互传文件 →',
- '2.8 新功能:安卓隔空傳送,手機電腦互傳檔案 →',
- '2.8 新功能:安卓隔空傳送,手機電腦互傳檔案 →',
- 'New in 2.8: send files between Android and your computer →',
- '2.8 の新機能:Android とパソコンでファイル転送 →'),
+ # {version} 由官网 VERSION 生成;每次发版同步更新功能摘要。
+ "badge": ('{version} 新功能:命令行查询,支持 Homebrew 安装 →',
+ '{version} 新功能:命令列查詢,支援 Homebrew 安裝 →',
+ '{version} 新功能:命令列查詢,支援 Homebrew 安裝 →',
+ 'New in {version}: CLI queries and Homebrew installation →',
+ '{version} の新機能:CLI での状態確認と Homebrew インストール →'),
# 首页手机区块(2.7)
"home_phone_h2": ("手机也能用了。", "手機也能用了。", "手機也能用了。", "Your phone joins in.", "スマホでも使える。"),
"home_phone_intro": ('安卓 App 可与电脑双向隔空传送,照片和文件一次多选,收到后保存或分享。不想安装?扫码打开网页,查看复制记录、发送内容,也能独立收发文件。',