fix: add collection config to demo dailies.md; photo strip keyboard access
- demo dailies.md: add content.items collection config (required for page.collection()) - base.html.twig: add tabindex="0" to journal-photo-strip for WCAG scrollable-region-focusable Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vgmzx8VTTTmCskSpQtsLTr
This commit is contained in:
@@ -1,4 +1,11 @@
|
|||||||
---
|
---
|
||||||
title: Journal
|
title: Journal
|
||||||
template: dailies
|
template: dailies
|
||||||
|
content:
|
||||||
|
items: '@self.children'
|
||||||
|
order:
|
||||||
|
by: date
|
||||||
|
dir: desc
|
||||||
|
filter:
|
||||||
|
published: true
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
document.querySelectorAll('.journal-photo-strip').forEach(function (strip) {
|
document.querySelectorAll('.journal-photo-strip').forEach(function (strip) {
|
||||||
strip.setAttribute('role', 'region');
|
strip.setAttribute('role', 'region');
|
||||||
strip.setAttribute('aria-label', 'Photo strip');
|
strip.setAttribute('aria-label', 'Photo strip');
|
||||||
|
strip.setAttribute('tabindex', '0');
|
||||||
|
|
||||||
var slideCount = parseInt(strip.dataset.slides, 10) || 1;
|
var slideCount = parseInt(strip.dataset.slides, 10) || 1;
|
||||||
var dots = strip.nextElementSibling;
|
var dots = strip.nextElementSibling;
|
||||||
|
|||||||
Reference in New Issue
Block a user