Blog Template HTML Validity
Purpose
Document the HTML/template rule that prevents blog detail pages from failing at render time.
Scope
In scope:
- Correct date filter usage in <time datetime="...">.
Out of scope: - Layout redesign. - Model or routing changes.
Rule
Use ISO format for datetime attributes:
{{ page.date|date:"Y-m-d" }}
Display text can use a separate human-readable format:
{{ page.date|date:"M j, Y" }}
Code locations
- Blog detail template:
backend/blog/templates/blog/blog_page.html
How to verify
make test- Open a blog detail page and inspect the
<time>element.
Failure mode to watch
Invalid Django template filter syntax will break rendering and return a server error.