Bug fixes, SEO, performance and accessibility pass #1
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: HangerThem/blog.hangerthem.com#1
Loading…
Reference in a new issue
No description provided.
Delete branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
A cleanup pass across the blog: route and feed bugs fixed, SEO basics added, smaller and lazier images, accessibility fixes, and a real README. No content or design changes beyond small fixes.
Bug fixes
/tags/standard-modelwas only rendered on demand and the pre-built pages said "Tag not found"). Unknown slugs now return a real 404, and there's a new not-found page.rel="self"now points to/feed.xml(was/feed);<updated>uses theupdatedfrontmatter field.no-js→jsclass swap runs in an inline<head>script before first paint, not after hydration.next/link;#anchors,mailto:and links without anhrefno longer break.<p><figure>and a hydration error. Those paragraphs are now split.<time datetime>values are valid. Formatting is pinned to Europe/Prague so a UTC build server can't shift a date by a day.SEO
sitemap.xmlandrobots.txtpageMetadata()helperBlogPostingJSON-LD on post pagesPerformance
sizeslinkboard-old.pngconverted to WebP (3.1 MB → 60 KB)CodeWrapperis now a server component; only the copy button ships to the client11.17.2for reproducible buildsAccessibility
aria-currenton active nav itemsinnerHTML, handles clipboard errors, announces the result to screen readers, and is no longer inside anaria-hiddenheader"title"becomes the caption; captions that only repeat the alt text are hidden from screen readersContent & maintenance
draft: truesupport: drafts only render in developmentMarkdownPagecomponent; tag/category lists sharePostListhastpackage;oxlint,oxfmtandpuppeteermoved to devDependencies (locked versions unchanged)math/mermaidflags from two postsDeployment notes
SITE_URLis now required: the build fails with a clear error if it's missing.Testing
tsc --noEmitandbun run lintpassbun run buildpasses; all 81 pages are generated staticallynext start: posts, tags, categories, feed, sitemap and OG images return 200; unknown tags and routes return 404<p>in any built page