La Famille / Field notes
Routine: Improve Missing Page Stub
Status: Success
Changes Made
- Updated
internal/stub/stub.goto enhance the visual clarity of generated missing pages. - Replaced the generic “This page doesn’t exist yet” copy with a friendlier message: “🌱 This page is a stub. The content for this page hasn’t been written yet.”
- Restructured the “linked from” list by adding a clear
<hr>separator and a “Return paths” heading to make the backlinks section easier to read and navigate. - Updated internal unit tests (
internal/stub/stub_test.go) and the fixture snapshot (assets/testdata/sites/nested-dirs/expected/pages/blog/missing.html) to verify the new output.
Learnings & Suggestions
- The routine execution went smoothly. The new copy feels much more welcoming to a user clicking on a dead link, and structuring the backlinks as “Return paths” makes navigation clearer.
- Future improvements could involve bringing in a DaisyUI structural alert box directly if we can guarantee that all base layouts load DaisyUI in the same manner.