- architecture/: overview, technology stack, auth (OIDC + built-in IndieAuth), syndication (POSSE) rewritten; new database.md, deployment.md and indieweb-protocols.md; legacy stack marked historical - decisions/: reconstructed ADR-060 and ADR-063; 31 status corrections (superseded auth ADRs, proposed -> accepted); INDEX rebuilt - design/: reconstructed the v1.6.0 documents the webmention code cites; reports for 18 v2 releases without a design folder; INDEX rebuilt - projectplan/: BACKLOG rewritten (shipped items removed, open issues from the reviews added); RELEASE.md for v2.0.0-v2.10.1; INDEX - standards/: development setup (uv, tests, DEV_MODE), testing (CI test stage), git and release flow, versioning, coding standards, cookies - README, CLAUDE.md, .env.example (every setting the code reads, with defaults) brought up to date - 137 broken links repaired (old absolute paths, moved files); stale ADR references in code comments corrected (comments only) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2.4 KiB
2.4 KiB
ADR-023: Strict Microformats2 Compliance
Status
Accepted (implemented in v1.3.0, reviewed in v2.8.0; was: Proposed)
Context
StarPunk currently implements basic microformats2 markup:
- h-entry on note articles
- e-content for note content
- dt-published for timestamps
- u-url for permalinks
"Strict" microformats2 compliance would add comprehensive markup for full IndieWeb interoperability, enabling better parsing by readers, Webmention receivers, and IndieWeb tools.
Decision
Enhance existing templates with complete microformats2 vocabulary, focusing on h-entry, h-card, and h-feed structures.
Rationale
- Core IndieWeb Requirement: Microformats2 is fundamental to IndieWeb data exchange
- Template-Only Changes: No backend modifications required
- Progressive Enhancement: Adds semantic value without breaking existing functionality
- Standards Maturity: Microformats2 spec is stable and well-documented
- Testing Tools Available: Validators exist for compliance verification
Consequences
Positive
- Full IndieWeb parser compatibility
- Better social reader integration
- Improved SEO through semantic markup
- Enables future Webmention support (v1.3.0)
Negative
- More complex HTML templates
- Careful CSS selector management needed
- Testing requires microformats2 parser
Alternatives Considered
- Minimal Compliance: Current state - rejected as incomplete for IndieWeb tools
- Microdata/RDFa: Not IndieWeb standard, adds complexity
- JSON-LD: Additional complexity, not IndieWeb native
Implementation Scope
Required Markup
-
h-entry (complete):
- p-name (title extraction)
- p-summary (excerpt)
- p-category (when tags added)
- p-author with embedded h-card
-
h-card (author):
- p-name (author name)
- u-url (author URL)
- u-photo (avatar, optional)
-
h-feed (index pages):
- p-name (feed title)
- p-author (feed author)
- Nested h-entry items
Template Updates Required
/templates/base.html- Add h-card in header/templates/index.html- Add h-feed wrapper/templates/note.html- Complete h-entry properties/templates/partials/note_summary.html- Create for consistent h-entry
Effort Estimate
- Template Analysis: 2-3 hours
- Markup Implementation: 4-6 hours
- CSS Compatibility Check: 1-2 hours
- Testing with mf2 parser: 2-3 hours
- Documentation: 1-2 hours
- Total: 10-16 hours