La Famille / Field notes
Report: Improve Missing Page Stub
Status: Success
Changes Made
- Updated the HTML copy inside
internal/stub/stub.gofor the stub alert. - Changed the main stub title from “🌱 This page is a stub” to “🚧 Under Construction”.
- Changed the subtitle from “The content for this page hasn’t been written yet.” to “We are still working on this content. Please check back later!”.
- Updated the return paths section headings to “Where did you come from?” and “You can return to the previous context by visiting one of these pages that link here:”.
- Ensured
bluemondayUGCPolicy ininternal/generator/generator.goexplicitly allowsclassandsvgelement attributes to preserve the structure of the existing DaisyUI alert box correctly in the rendered HTML output. - Fixed assertions in
internal/stub/stub_test.goto match the new text.
Learnings/Suggestions
- Since
bluemondaysanitization strips classes and SVGs by default, adding elements and class-allowing globally insidegenerator.goensures all generated content preserves DaisyUI aesthetics while still cleaning out arbitrary scripts.