VOD
Bedroom
1,439 minOn YouTube
GitHub commits
ohnsh/days11
- New paginated latest posts feed. It will soon be the default (index) route. Had to get a little hacky to get pagination working within Starlight's template system. This endpoint is outside of Starlight's regular scope but renders a <StarlightPage> layout component, so it looks identical.
9c31209 - Extract `getCollection` procedure into a util function `getPosts`.
268fbf4 - Add color to dark them accent color, clean up CSS, make code blocks consistent.
15d1eb8 - Refactor to allow index page (and others) to force og:image in frontmatter.
1a2644f - Fixed og:image bug on index page. routeData.ts improvements. Use content collection filtering API with `getCollection`. The index entry has id `index` when returned by `getCollection` but it's the empty string when accessed through `Astro.locals.starlightRoute`.
4744f2a - Minor fix to favicon code snippet.
dffc9da - New apple-touch-icon.
ef2af46 - Remove early return in middleware that was preventing og:image tags on index page.
399a10e - Add 9th, tweak GithubDay styles.
6b513c7 - Added today's run.
43f8ecd - Brought in Github day-loader from scratch project. Had to change dynamic imports in content loader to `import.meta.glob` to make Vite happy. The `eager` option is crucial; without it the imports are still basically dynamic and Vite crashes.
0d8350f