Skip to content

Commit 31f18ea

Browse files
committed
update .gitignore
1 parent 75c61b9 commit 31f18ea

30 files changed

+2807
-3
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
/public/
2-
/resources/
3-
41
.vscode
52
.DS_Store
63

public/404.html

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
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>404 Page not found - Mycroft Wong&#39;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="404 Page not found"><meta property="og:url" content="https://mycroftwong.github.io/404.html">
56+
<meta property="og:site_name" content="Mycroft Wong&#39;s Blog">
57+
<meta property="og:title" content="404 Page not found">
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="404 Page not found">
63+
64+
<link rel="canonical" href="https://mycroftwong.github.io/404.html" />
65+
</head>
66+
<body
67+
class="bg-(--bg) text-black antialiased duration-200 ease-out [-webkit-tap-highlight-color:transparent] dark:text-white"
68+
><header
69+
class="mx-auto flex h-[4.5rem] max-w-(--w) px-8 whitespace-nowrap lg:justify-center"
70+
>
71+
<div class="relative z-50 flex items-center ltr:mr-auto rtl:ml-auto">
72+
<a
73+
class="-translate-y-[1px] text-2xl font-medium"
74+
href="https://mycroftwong.github.io/"
75+
>Mycroft Wong&#39;s Blog</a
76+
>
77+
<div
78+
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]"
79+
role="button"
80+
aria-label="Dark"
81+
></div>
82+
</div>
83+
84+
<div
85+
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"
86+
role="button"
87+
aria-label="Menu"
88+
></div>
89+
90+
<script>
91+
92+
const htmlClass = document.documentElement.classList;
93+
setTimeout(() => {
94+
htmlClass.remove('not-ready');
95+
}, 10);
96+
97+
98+
const btnMenu = document.querySelector('.btn-menu');
99+
btnMenu.addEventListener('click', () => {
100+
htmlClass.toggle('open');
101+
});
102+
103+
104+
const metaTheme = document.querySelector('meta[name="theme-color"]');
105+
const lightBg = '#faf8f1'.replace(/"/g, '');
106+
const setDark = (isDark) => {
107+
metaTheme.setAttribute('content', isDark ? '#000' : lightBg);
108+
htmlClass[isDark ? 'add' : 'remove']('dark');
109+
localStorage.setItem('dark', isDark);
110+
};
111+
112+
113+
const darkScheme = window.matchMedia('(prefers-color-scheme: dark)');
114+
if (htmlClass.contains('dark')) {
115+
setDark(true);
116+
} else {
117+
const darkVal = localStorage.getItem('dark');
118+
setDark(darkVal ? darkVal === 'true' : darkScheme.matches);
119+
}
120+
121+
122+
darkScheme.addEventListener('change', (event) => {
123+
setDark(event.matches);
124+
});
125+
126+
127+
const btnDark = document.querySelector('.btn-dark');
128+
btnDark.addEventListener('click', () => {
129+
setDark(localStorage.getItem('dark') !== 'true');
130+
});
131+
</script>
132+
133+
<div
134+
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"
135+
><nav
136+
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"
137+
>
138+
<a
139+
class="h-7 w-7 text-[0px] [background:var(--url)_center_center/cover_no-repeat] lg:h-6 lg:w-6"
140+
style="--url: url(./github.svg)"
141+
href="https://github.com/MycroftWong"
142+
target="_blank"
143+
rel="me"
144+
>github</a>
145+
<a
146+
class="h-7 w-7 text-[0px] [background:var(--url)_center_center/cover_no-repeat] lg:h-6 lg:w-6"
147+
style="--url: url(./rss.svg)"
148+
href="https://mycroftwong.github.io/index.xml"
149+
target="_blank"
150+
rel="alternate"
151+
>rss</a>
152+
</nav>
153+
</div>
154+
</header>
155+
<main
156+
class="prose prose-neutral dark:prose-invert relative mx-auto min-h-[calc(100vh-9rem)] max-w-(--w) px-8 pt-14 pb-16"
157+
><h1
158+
class="absolute inset-x-8 top-0 bottom-20 flex items-center justify-center text-9xl"
159+
>
160+
404
161+
</h1></main><footer
162+
class="mx-auto flex h-[4.5rem] max-w-(--w) items-center px-8 text-xs tracking-wider uppercase opacity-60"
163+
>
164+
<div class="mr-auto">&copy;2025
165+
<a class="link" href="https://mycroftwong.github.io/">Mycroft Wong&#39;s Blog</a></div>
166+
<a class="link mx-6" href="https://gohugo.io/" rel="noopener" target="_blank"
167+
>powered by hugo️️</a
168+
>
169+
<a
170+
class="link"
171+
href="https://github.com/nanxiaobei/hugo-paper"
172+
rel="noopener"
173+
target="_blank"
174+
>hugo-paper</a
175+
>
176+
</footer>
177+
</body>
178+
</html>

public/apple-touch-icon.png

3.08 KB
Loading

public/bluesky.svg

Lines changed: 1 addition & 0 deletions
Loading

public/categories/index.html

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
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&#39;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&#39;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&#43;xml"
66+
href="https://mycroftwong.github.io/categories/index.xml"
67+
title="Mycroft Wong&#39;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&#39;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">&copy;2025
166+
<a class="link" href="https://mycroftwong.github.io/">Mycroft Wong&#39;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>

public/categories/index.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
2+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3+
<channel>
4+
<title>Categories on Mycroft Wong&#39;s Blog</title>
5+
<link>https://mycroftwong.github.io/categories/</link>
6+
<description>Recent content in Categories on Mycroft Wong&#39;s Blog</description>
7+
<generator>Hugo</generator>
8+
<language>en-us</language>
9+
<atom:link href="https://mycroftwong.github.io/categories/index.xml" rel="self" type="application/rss+xml" />
10+
</channel>
11+
</rss>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="en-us">
3+
<head>
4+
<title>https://mycroftwong.github.io/categories/</title>
5+
<link rel="canonical" href="https://mycroftwong.github.io/categories/">
6+
<meta name="robots" content="noindex">
7+
<meta charset="utf-8">
8+
<meta http-equiv="refresh" content="0; url=https://mycroftwong.github.io/categories/">
9+
</head>
10+
</html>

public/favicon.ico

971 Bytes
Binary file not shown.

public/github.svg

Lines changed: 1 addition & 0 deletions
Loading

public/highlight.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)