feat: articles at /article/<slug> with slugs from their titles (v2.17.0, ADR-077)

Articles (notes with a title) move from /note/<slug> to /article/<slug>;
the other prefix 301-redirects. New articles take their slug from the
title (mp-slug still wins; notes keep timestamp slugs). A Micropub update
that adds or removes a title answers 201 with the new Location.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-12 12:27:31 -07:00
1 parent 66aecc2bcb
commit b7f8e1612c
26 files changed
+308 -60

No files matched your search

+3
View File
@@ -330,6 +330,7 @@ def search_notes_fts5(
notes.id,
notes.slug,
notes_fts.title,
notes.title AS article_title,
notes.published,
notes.created_at,
rank AS relevance,
@@ -356,6 +357,7 @@ def search_notes_fts5(
'id': row['id'],
'slug': row['slug'],
'title': row['title'],
'article_title': row['article_title'],
'snippet': row['snippet'], # Plain string - route must escape HTML while preserving <mark> tags
'relevance': row['relevance'],
'published': bool(row['published']),
@@ -466,6 +468,7 @@ def search_notes_fallback(
'id': row['id'],
'slug': row['slug'],
'title': title,
'article_title': row['title'],
'snippet': generate_snippet(content, query),
'relevance': 0.0, # No ranking in fallback mode
'published': bool(row['published']),