add manual light/dark toggle

This commit is contained in:
Joshua Seigler 2025-05-08 21:59:50 -04:00
parent 5634b290cd
commit e5f29ff84b
3 changed files with 80 additions and 59 deletions

View file

@ -8,8 +8,8 @@ title: Joshua's Homepage
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{{ "/site.css" | url }}?modified={{buildTime}}"/>
<link rel="preload" media="light" href="{{ "./cloud.png" | url }}" as="image" />
<link rel="preload" media="dark" href="{{ "./cloud-night.png" | url }}" as="image" />
<link rel="preload" media="(prefers-color-scheme: light)" href="{{ "./cloud.png" | url }}" as="image" />
<link rel="preload" media="(prefers-color-scheme: dark)" href="{{ "./cloud-night.png" | url }}" as="image" />
<title>{{ computedTitle }} - {{ site.title }}</title>
<meta name="description" content="{{ description }}" />
<meta property="og:title" content="{{ computedTitle }}" />