Stupid sidebar tricks
I wanted to add my name and some external (non-social) links to the main layout. Starlight, being a documentation framework, isn’t really designed with that sort of thing in mind. I decided to use the sidebar, essentially dividing it into a header (for the author’s name), a main area, and a footer (for external links). Note that the sidebar is hidden behind a menu button at mobile sizes.
You can always override Starlight’s <Sidebar> component, which is probably what I should do. But for now, this config-only hack kind of works, helped by some custom CSS for the .author class.
Git Commits
scratch commits 9
ohnsh/scratch-
11:15 pm — John Sherrell <dev@ohn.sh>
Clean up formatting.
-
9:37 pm — John Sherrell <dev@ohn.sh>
Split log into different project.
-
7:00 pm — John Sherrell <dev@ohn.sh>
Ready to split into scratch/log.
-
4:43 pm — John Sherrell <dev@ohn.sh>
Added routeData middleware to inject og:image meta tags pointing at YouTube thumbnails.
-
3:13 pm — John Sherrell <dev@ohn.sh>
Test OG image on March 3.
-
12:54 pm — John Sherrell <dev@ohn.sh>
New videos.
-
12:46 pm — John Sherrell <dev@ohn.sh>
Shim docs content loader to generate redundant sidebar frontmatter options.
-
1:26 am — John Sherrell <dev@ohn.sh>
Added `date` frontmatter to log posts. Going to eliminate some or all of the rest.
-
12:46 am — John Sherrell <dev@ohn.sh>
New videos.
days commits 4
ohnsh/days-
10:29 pm — John Sherrell <dev@ohn.sh>
Clean-up.
-
10:24 pm — John Sherrell <dev@ohn.sh>
New videos.
-
10:12 pm — John Sherrell <dev@ohn.sh>
Fix up favicons, add logo, clean up public.
-
9:46 pm — John Sherrell <dev@ohn.sh>
Bringing in starlight-based blog from scratch project. Old setup is on branch `orig`.