Calendar Refinement
This commit is contained in:
12
README.md
12
README.md
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user