Action | Type | Resolved On |
|---|---|---|
| Diary Year | Feature | 2025-12-22 |
This feature enables organizing and viewing tech diaries across different years. Currently, diaries may not have a clear year-based organization system. This feature would allow users to maintain separate diary entries organized by year, making it easier to review historical tech insights, learnings, and decisions over time.
Two main approaches are possible:
Create separate directories for each year:
src/content/diaries/
2024/
entry-1.md
entry-2.md
2025/
entry-1.md
entry-2.md
2026/
entry-1.md
Advantages:
Disadvantages:
Add year field to markdown front-matter:
---
year: 2025
month: 12
title: Entry Title
---
Advantages:
Disadvantages:
Use Option 1: Folder Structure by Year
This approach provides better organizational clarity, scalability, and maintainability. The year becomes a structural element rather than metadata, making the distinction between years explicit and harder to accidentally violate.
Option 1: Folder Structure by Year (IMPLEMENTED)
Successfully implemented year-based organization for weeks (diary entries):
Files Modified:
src/content/config.ts: Added year field to weeksCollection schemasrc/components/planner/benben/Diary.astro: Updated to accept year prop and construct paths as year/wkXyear prop to Diary componentFolder Structure:
src/content/weeks/
└── 2025/
├── wk27.md
├── wk28.md
├── wk36.md
├── wk37.md
├── wk42.md
├── wk43.md
├── wk45.md
├── wk51.md
└── first-entry.md (sample)
Key Benefits Achieved:
Backward Compatibility: