Calendar Refinement

This commit is contained in:
2026-03-11 13:31:49 +01:00
parent 94215fdd65
commit 6162ff595f
8 changed files with 371 additions and 49 deletions

View File

@@ -289,21 +289,27 @@ Render a basic monthly calendar that links each day to canonical chronological p
```
{{calendar>}}
{{calendar>2024-10}}
{{calendar>2026-03&size=small}}
{{calendar>2026-03&size=large&show_times=0}}
```
Notes:
- `{{calendar>}}` renders the current month.
- `{{calendar>YYYY-MM}}` renders a specific month.
- `size=large|small` controls the widget layout and defaults to `large`.
- `show_times=1|0` controls inline event times in `large` mode and defaults to `1`.
- Day links target `chronological:YYYY:MM:DD`.
- Header month/year links target `chronological:YYYY:MM` and `chronological:YYYY`.
- Prev/next month buttons update the widget in-place without a full page reload.
- Month switches fetch server-rendered widget HTML via AJAX and replace only the widget node.
- Calendar output is marked as non-cacheable to keep missing/existing link styling and
current-day highlighting up to date.
- Each day cell can show colored corner triangles for slots that have events on that day.
Indicator placement is configured per slot via the `Display` setting.
Indicator colors are taken from the slot's configured color.
- Small mode keeps the compact day-number-plus-indicator layout.
- Large mode renders inline day events in the month cells and suppresses the corner indicators.
- Only slots whose `Display` setting is not `None` participate in widget visibility.
- Indicator placement in small mode is configured per slot via the `Display` setting.
- Slot colors are reused for both indicators and inline event accents.
### 0.4) Virtual chronological day pages