La Famille / Field notes
Routine: Generate New Layout Template
Goal: Create a new, unique HTML layout template for the static site generator.
Task Details
Create a single-file HTML layout in the templates/ directory.
- Variety: Choose a structural layout we don’t currently use heavily (e.g., Sidebar Navigation, Centered Minimalist, Split-screen, Brutalist, Magazine Grid).
- Theme: Select a specific, matching DaisyUI theme (e.g., synthwave, cupcake, dracula, business, wireframe, cyberpunk) and apply it to the
<html>tag. - Core Components:
- Ensure there is a visually distinct header and footer.
- Ensure mobile-first responsiveness.
- Wrap the
{{.Content}}output in a container utilizing Tailwind Typography’sproseclasses (e.g.,class="prose lg:prose-xl max-w-none").
Execution Reminders
-
The DaisyUI
drawercomponent provides an excellent foundation for application-like layouts, such as dashboards. -
DO NOT attempt to modify
.gofiles or the core application logic (the system) when generating layout templates. This task is strictly for creating static HTML templates. -
Ensure that assets are manually copied over (
cp -R assets public/) before launching the test server to allow absolute paths (e.g./assets/img/...) to resolve correctly during visual verification. -
Write the file directly to the
templates/directory with an appropriate name (e.g.,layout-sidebar.html). -
Rely on your internal memory for project standards (footers, accessibility, Go template variables).
-
Test visually with Playwright before committing.
-
Upon successful completion, you MUST write a short log (including date, routine name, success status, and any learnings or suggestions for improving this routine) to a new markdown file in
content/jules/reports/(e.g.,content/jules/reports/[date]-[routine-name].md). -
Layout Patterns: Consider explicitly using specific DaisyUI layout patterns (like
drawerorhero) or CSS Grids (likegrid-cols-12) to speed up scaffolding and handle responsive splits effectively. -
Theme Contrast with Prose: When combining Tailwind Typography’s
proseclasses with dark themes (likedracula), standard headings and strong text might blend into the background. Use DaisyUI theme color classes within prose modifiers (e.g.,prose-headings:text-primary,prose-strong:text-base-content) to maintain readability and theme consistency.