2026-10-20 TUE UTC 12:42 PM TPE 8:42 PM 每小時自動更新 中文 EN
LIVE 快訊
← 返回網站更新紀錄 Site Changelog

提交原始紀錄

摘要只保留在首頁 (#91) 移除新聞內頁的可見摘要元件與專屬樣式,首頁摘要及 SEO 描述維持不變。

SHA
766b4e44c66ec9b5b17c8f1ba98988d5984e0ca5
提交時間
作者
nnneeeooo-nnneeeooo
提交者
web-flow

變更檔案 (3)

  • static/site.css modified · +0 / −6
  • templates/article.html modified · +0 / −2
  • tests/test_mobile_layout.py modified · +10 / −7

完整差異

@@ -279,10 +279,6 @@ a.flash-row:hover { color: inherit; }\n .summary-preview--feed .summary-preview__text {\n   font-size: 12.5px; line-height: 1.55; max-height: 3.1em;\n }\n-.summary-preview--article { margin: -8px 0 24px; }\n-.summary-preview--article .summary-preview__text {\n-  font-size: 15px; line-height: 1.65; max-height: 3.3em;\n-}\n \n [data-theme="dark"] .summary-preview__label {\n   color: color-mix(in srgb, #b8adff 88%, var(--color-text));\n@@ -601,8 +597,6 @@ a.flash-row:hover { color: inherit; }\n   .article-meta { gap: 7px 12px; }\n   .article-meta > :last-child { margin-left: 0 !important; flex-basis: 100%; }\n   .summary-preview { gap: 5px; }\n-  .summary-preview--article { margin-top: -6px; }\n-  .summary-preview--article .summary-preview__text { font-size: 14px; }\n   .article-sources { padding: 14px 12px 10px; }\n   .article-source-row { flex-wrap: wrap; gap: 4px 8px; }\n   .footer-grid { padding: 20px 12px 28px; gap: 24px; }\n@@ -1,5 +1,4 @@\n {% extends "base.html" %}\n-{% from "_summary.html" import notification_summary %}\n {% block content %}\n   <div class="article-page">\n     <a href="{{ home_url }}" class="btn btn-ghost" style="margin-bottom:18px;">{{ t.back }}</a>\n@@ -15,7 +14,6 @@ <h1 class="article-title">{{ a.title }}</h1>\n         <span style="margin-left:auto;">{{ t.refreshNote }}</span>\n       </div>\n     </div>\n-    {{ notification_summary(a.display_summary, t.summaryLabel, 'article') }}\n     {% if a.image %}\n     <figure style="margin:0 0 22px;">\n       <img src="{{ a.image.url }}" alt="{{ a.image.subject or a.title }}" loading="lazy" style="width:100%;height:auto;max-height:560px;object-fit:contain;background:color-mix(in srgb,var(--color-text) 6%,var(--color-surface));border:1px solid var(--color-divider);">\n@@ -44,13 +44,17 @@ def main() -> None:\n     assert 'aria-label="重點摘要"' in home\n     assert "<span>重點摘要</span>" not in home\n     assert 'class="article-page"' in article\n-    assert 'class="summary-preview summary-preview--article"' in article\n-    assert 'class="summary-preview__icon"' in article\n+    assert 'class="summary-preview' not in article\n     assert 'class="article-source-row"' in article\n-    assert "AirAdvisor發布2026機場排名;倫敦希斯洛以16.94分居首" in airadvisor\n-    assert "捷星航空2027年2月2日起收取頭頂置物箱費;單程25澳幣起" in jetstar\n-    assert "David Cummins就任TSA第八任局長;監管全美逾430座機場安檢" in david\n-    assert "阿聯酋航空夏季暫停PRG、GLA A380航班;10月恢復每日服務" in emirates\n+    summaries = (\n+        ("AirAdvisor發布2026機場排名;倫敦希斯洛以16.94分居首", airadvisor),\n+        ("捷星航空2027年2月2日起收取頭頂置物箱費;單程25澳幣起", jetstar),\n+        ("David Cummins就任TSA第八任局長;監管全美逾430座機場安檢", david),\n+        ("阿聯酋航空夏季暫停PRG、GLA A380航班;10月恢復每日服務", emirates),\n+    )\n+    for summary, article_html in summaries:\n+        assert summary in home\n+        assert 'class="summary-preview' not in article_html\n \n     zh_long = "中華航空8月10日宣布調整桃園至福岡航班,受機場作業限制影響,兩班延後三小時,旅客須留意報到時間。" * 2\n     zh_short = build.notification_summary(\n@@ -86,7 +90,6 @@ def main() -> None:\n     assert "line-clamp: 2" in css\n     assert "max-height: 3.16em" in css\n     assert "max-height: 3.1em" in css\n-    assert "max-height: 3.3em" in css\n     assert "width: 100%; padding: 0;" in css\n     assert "border: 0; border-radius: 0; background: transparent; box-shadow: none;" in css\n     assert "--ticker-duration: 130s" in css

你發現了隱藏主題!

8-bit 主題已解鎖。重新整理後,就能在主題選單選擇 8-bit。