|
| 1 | +<!doctype html> |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | +<html |
| 10 | + class="not-ready lg:text-base" |
| 11 | + style="--bg:#faf8f1" |
| 12 | + lang="en-us" |
| 13 | + dir="ltr" |
| 14 | +><head> |
| 15 | + <meta charset="utf-8" /> |
| 16 | + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 17 | + <meta |
| 18 | + name="viewport" |
| 19 | + content="width=device-width, initial-scale=1, shrink-to-fit=no" |
| 20 | + /> |
| 21 | + |
| 22 | + |
| 23 | + <title>Categories - Mycroft Wong's Blog</title> |
| 24 | + |
| 25 | + |
| 26 | + <meta name="theme-color" /> |
| 27 | + |
| 28 | + |
| 29 | + <meta |
| 30 | + name="description" |
| 31 | + content="A personal blog" |
| 32 | + /> |
| 33 | + <meta name="author" content="Mycroft Wong" /><link rel="preload stylesheet" as="style" href="https://mycroftwong.github.io/main.min.css" /> |
| 34 | + |
| 35 | + |
| 36 | + <link rel="preload" as="image" href="https://mycroftwong.github.io/theme.png" /> |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + <link rel="preload" as="image" href="https://mycroftwong.github.io/github.svg" /><link rel="preload" as="image" href="https://mycroftwong.github.io/rss.svg" /> |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + <link |
| 46 | + rel="icon" |
| 47 | + href="https://mycroftwong.github.io/favicon.ico" |
| 48 | + /> |
| 49 | + <link |
| 50 | + rel="apple-touch-icon" |
| 51 | + href="https://mycroftwong.github.io/apple-touch-icon.png" |
| 52 | + /> |
| 53 | + |
| 54 | + <meta name="generator" content="Hugo 0.148.1"> |
| 55 | + <meta itemprop="name" content="Categories"><meta property="og:url" content="https://mycroftwong.github.io/categories/"> |
| 56 | + <meta property="og:site_name" content="Mycroft Wong's Blog"> |
| 57 | + <meta property="og:title" content="Categories"> |
| 58 | + <meta property="og:locale" content="en_us"> |
| 59 | + <meta property="og:type" content="website"> |
| 60 | + |
| 61 | + <meta name="twitter:card" content="summary"> |
| 62 | + <meta name="twitter:title" content="Categories"> |
| 63 | +<link |
| 64 | + rel="alternate" |
| 65 | + type="application/rss+xml" |
| 66 | + href="https://mycroftwong.github.io/categories/index.xml" |
| 67 | + title="Mycroft Wong's Blog" |
| 68 | + /> |
| 69 | + <link rel="canonical" href="https://mycroftwong.github.io/categories/" /> |
| 70 | +</head> |
| 71 | +<body |
| 72 | + class="bg-(--bg) text-black antialiased duration-200 ease-out [-webkit-tap-highlight-color:transparent] dark:text-white" |
| 73 | + ><header |
| 74 | + class="mx-auto flex h-[4.5rem] max-w-(--w) px-8 whitespace-nowrap lg:justify-center" |
| 75 | +> |
| 76 | + <div class="relative z-50 flex items-center ltr:mr-auto rtl:ml-auto"> |
| 77 | + <a |
| 78 | + class="-translate-y-[1px] text-2xl font-medium" |
| 79 | + href="https://mycroftwong.github.io/" |
| 80 | + >Mycroft Wong's Blog</a |
| 81 | + > |
| 82 | + <div |
| 83 | + class="btn-dark text-[0px] ltr:ml-4 rtl:mr-4 h-6 w-6 shrink-0 cursor-pointer [background:url(./theme.png)_left_center/_auto_theme('spacing.6')_no-repeat] [transition:_background-position_0.4s_steps(5)] dark:[background-position:right]" |
| 84 | + role="button" |
| 85 | + aria-label="Dark" |
| 86 | + ></div> |
| 87 | + </div> |
| 88 | + |
| 89 | + <div |
| 90 | + class="btn-menu relative z-50 flex h-[4.5rem] w-[5rem] shrink-0 cursor-pointer flex-col items-center justify-center gap-2.5 lg:hidden ltr:-mr-8 rtl:-ml-8" |
| 91 | + role="button" |
| 92 | + aria-label="Menu" |
| 93 | + ></div> |
| 94 | + |
| 95 | + <script> |
| 96 | + |
| 97 | + const htmlClass = document.documentElement.classList; |
| 98 | + setTimeout(() => { |
| 99 | + htmlClass.remove('not-ready'); |
| 100 | + }, 10); |
| 101 | + |
| 102 | + |
| 103 | + const btnMenu = document.querySelector('.btn-menu'); |
| 104 | + btnMenu.addEventListener('click', () => { |
| 105 | + htmlClass.toggle('open'); |
| 106 | + }); |
| 107 | + |
| 108 | + |
| 109 | + const metaTheme = document.querySelector('meta[name="theme-color"]'); |
| 110 | + const lightBg = '#faf8f1'.replace(/"/g, ''); |
| 111 | + const setDark = (isDark) => { |
| 112 | + metaTheme.setAttribute('content', isDark ? '#000' : lightBg); |
| 113 | + htmlClass[isDark ? 'add' : 'remove']('dark'); |
| 114 | + localStorage.setItem('dark', isDark); |
| 115 | + }; |
| 116 | + |
| 117 | + |
| 118 | + const darkScheme = window.matchMedia('(prefers-color-scheme: dark)'); |
| 119 | + if (htmlClass.contains('dark')) { |
| 120 | + setDark(true); |
| 121 | + } else { |
| 122 | + const darkVal = localStorage.getItem('dark'); |
| 123 | + setDark(darkVal ? darkVal === 'true' : darkScheme.matches); |
| 124 | + } |
| 125 | + |
| 126 | + |
| 127 | + darkScheme.addEventListener('change', (event) => { |
| 128 | + setDark(event.matches); |
| 129 | + }); |
| 130 | + |
| 131 | + |
| 132 | + const btnDark = document.querySelector('.btn-dark'); |
| 133 | + btnDark.addEventListener('click', () => { |
| 134 | + setDark(localStorage.getItem('dark') !== 'true'); |
| 135 | + }); |
| 136 | + </script> |
| 137 | + |
| 138 | + <div |
| 139 | + class="nav-wrapper fixed inset-x-0 top-full z-40 flex h-full flex-col justify-center bg-(--bg) pb-16 duration-200 select-none lg:static lg:h-auto lg:flex-row lg:bg-transparent! lg:pb-0 lg:transition-none" |
| 140 | + ><nav |
| 141 | + class="mt-12 flex justify-center space-x-10 lg:mt-0 lg:items-center ltr:lg:ml-14 rtl:space-x-reverse rtl:lg:mr-14 dark:invert" |
| 142 | + > |
| 143 | + <a |
| 144 | + class="h-7 w-7 text-[0px] [background:var(--url)_center_center/cover_no-repeat] lg:h-6 lg:w-6" |
| 145 | + style="--url: url(./github.svg)" |
| 146 | + href="https://github.com/MycroftWong" |
| 147 | + target="_blank" |
| 148 | + rel="me" |
| 149 | + >github</a> |
| 150 | + <a |
| 151 | + class="h-7 w-7 text-[0px] [background:var(--url)_center_center/cover_no-repeat] lg:h-6 lg:w-6" |
| 152 | + style="--url: url(./rss.svg)" |
| 153 | + href="https://mycroftwong.github.io/index.xml" |
| 154 | + target="_blank" |
| 155 | + rel="alternate" |
| 156 | + >rss</a> |
| 157 | + </nav> |
| 158 | + </div> |
| 159 | +</header> |
| 160 | +<main |
| 161 | + class="prose prose-neutral dark:prose-invert relative mx-auto min-h-[calc(100vh-9rem)] max-w-(--w) px-8 pt-14 pb-16" |
| 162 | + ></main><footer |
| 163 | + class="mx-auto flex h-[4.5rem] max-w-(--w) items-center px-8 text-xs tracking-wider uppercase opacity-60" |
| 164 | +> |
| 165 | + <div class="mr-auto">©2025 |
| 166 | + <a class="link" href="https://mycroftwong.github.io/">Mycroft Wong's Blog</a></div> |
| 167 | + <a class="link mx-6" href="https://gohugo.io/" rel="noopener" target="_blank" |
| 168 | + >powered by hugo️️</a |
| 169 | + >️ |
| 170 | + <a |
| 171 | + class="link" |
| 172 | + href="https://github.com/nanxiaobei/hugo-paper" |
| 173 | + rel="noopener" |
| 174 | + target="_blank" |
| 175 | + >hugo-paper</a |
| 176 | + > |
| 177 | +</footer> |
| 178 | +</body> |
| 179 | +</html> |
0 commit comments