feat: remove themes
This commit is contained in:
parent
1d2f556b32
commit
142d0876a6
6 changed files with 2 additions and 99 deletions
|
|
@ -26,14 +26,9 @@ const promptText = topic ? `barrett@ruth:~$ ${topic}` : "barrett@ruth:~$";
|
|||
<span class="terminal-cursor"></span>
|
||||
</div>
|
||||
</a>
|
||||
<span id="theme-toggle">☼⊂ʕ•ᴥ•ʔ</span>
|
||||
</header>
|
||||
|
||||
<style>
|
||||
#theme-toggle {
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
@media (max-width: 640px) {
|
||||
header {
|
||||
flex-direction: row;
|
||||
|
|
|
|||
|
|
@ -13,17 +13,6 @@ const {
|
|||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<script is:inline>
|
||||
(function () {
|
||||
const stored = localStorage.getItem("theme");
|
||||
const theme =
|
||||
stored ||
|
||||
(matchMedia("(prefers-color-scheme: dark)").matches
|
||||
? "dark"
|
||||
: "light");
|
||||
document.documentElement.setAttribute("data-theme", theme);
|
||||
})();
|
||||
</script>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
|
|
|||
|
|
@ -6,9 +6,8 @@ export type CollectionKey =
|
|||
| "meditations"
|
||||
| "autonomous-racing"
|
||||
| "git"
|
||||
| "gists"
|
||||
| "death";
|
||||
export type PostCollection = Exclude<CollectionKey, "git" | "gists">;
|
||||
export type PostCollection = Exclude<CollectionKey, "git">;
|
||||
|
||||
export type AnyCollectionEntry =
|
||||
| CollectionEntry<"algorithms">
|
||||
|
|
@ -16,5 +15,4 @@ export type AnyCollectionEntry =
|
|||
| CollectionEntry<"meditations">
|
||||
| CollectionEntry<"autonomous-racing">
|
||||
| CollectionEntry<"death">
|
||||
| CollectionEntry<"git">
|
||||
| CollectionEntry<"gists">;
|
||||
| CollectionEntry<"git">;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue