fix: show an article's summary as a subtitle (v2.20.3)

On the article page the summary shared the body's reading style, so it
read as the first paragraph. It now sits under the title as a dek: sans
font, slightly larger, muted, with a rule before the body. The homepage
teaser keeps the reading style, where it stands in for the body.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-27 12:01:34 -07:00
1 parent acd6bf819d
commit 964a44c95e
5 files changed
+18 -3

No files matched your search

+5
View File
@@ -76,6 +76,11 @@ class TestPages:
assert props["summary"] == ["The gist."]
assert not props["content"][0]["value"].startswith("An Article")
def test_summary_is_a_subtitle_only_on_the_article_page(self, app, client):
article, _ = make_both(app)
assert 'class="p-summary dek"' in client.get(f"/article/{article.slug}").data.decode()
assert "dek" not in client.get("/").data.decode()
def test_homepage_and_tag_page(self, app, client, h):
photo = upload(client, h)
url = micropub(client, h, name=["Trip"], content=["Day one of the trip."], photo=[photo],