Skip to content

Commit

Permalink
deploy: 764cfa2
Browse files Browse the repository at this point in the history
  • Loading branch information
howdhu committed Dec 10, 2023
1 parent 33da278 commit 35b462e
Show file tree
Hide file tree
Showing 35 changed files with 943 additions and 3,219 deletions.
85 changes: 56 additions & 29 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
<meta name="robots" content="index, follow">
<title>404 Page not found | Howard Hu</title>
<meta name="keywords" content="">
<meta name="description" content="Theme PaperMod - https://github.com/adityatelange/hugo-PaperMod">
<meta name="description" content="">
<meta name="author" content="Howard Hu">
<link rel="canonical" href="https://howardhu.me/404.html">
<link crossorigin="anonymous" href="/assets/css/stylesheet.0c4fd3725171366f335155acde6fb3c7b7042cd2fd075bebf5023d9b28a701b2.css" integrity="sha256-DE/TclFxNm8zUVWs3m&#43;zx7cELNL9B1vr9QI9myinAbI=" rel="preload stylesheet" as="style">
<link crossorigin="anonymous" href="/assets/css/stylesheet.5c25c975546c048d1a5600aadb48425ae1bc921a9a18fe67d6955c9535260811.css" integrity="sha256-XCXJdVRsBI0aVgCq20hCWuG8khqaGP5n1pVclTUmCBE=" rel="preload stylesheet" as="style">
<link rel="icon" href="https://howardhu.me/favicon.ico">
<link rel="icon" type="image/png" sizes="16x16" href="https://howardhu.me/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="https://howardhu.me/favicon-32x32.png">
Expand Down Expand Up @@ -55,21 +55,23 @@

</style>
</noscript><meta property="og:title" content="404 Page not found" />
<meta property="og:description" content="Theme PaperMod - https://github.com/adityatelange/hugo-PaperMod" />
<meta property="og:description" content="" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://howardhu.me/404.html" /><meta property="og:image" content="https://howardhu.me/papermod-cover.png"/>

<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="https://howardhu.me/papermod-cover.png"/>
<meta property="og:url" content="https://howardhu.me/404.html" />

<meta name="twitter:card" content="summary"/>
<meta name="twitter:title" content="404 Page not found"/>
<meta name="twitter:description" content="Theme PaperMod - https://github.com/adityatelange/hugo-PaperMod"/>
<meta name="twitter:description" content=""/>

</head>

<body class="list" id="top">
<script>
if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
if (localStorage.getItem("pref-theme") === "dark") {
document.body.classList.add('dark');
} else if (localStorage.getItem("pref-theme") === "light") {
document.body.classList.remove('dark')
} else if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
document.body.classList.add('dark');
}

Expand All @@ -80,17 +82,42 @@
<div class="logo">
<a href="https://howardhu.me/" accesskey="h" title="Howard Hu (Alt + H)">Howard Hu</a>
<div class="logo-switches">
<button id="theme-toggle" accesskey="t" title="(Alt + T)">
<svg id="moon" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</svg>
<svg id="sun" xmlns="http://www.w3.org/2000/svg" width="24" height="18" viewBox="0 0 24 24"
fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"
stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle>
<line x1="12" y1="1" x2="12" y2="3"></line>
<line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line>
<line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line>
<line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line>
<line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</svg>
</button>
</div>
</div>
<ul id="menu">
<li>
<a href="https://howardhu.me/archives" title="Archive">
<span>Archive</span>
<a href="https://howardhu.me/posts" title="Posts">
<span>Posts</span>
</a>
</li>
<li>
<a href="https://howardhu.me/books/" title="Books">
<span>Books</span>
</a>
</li>
<li>
<a href="https://howardhu.me/search/" title="Search (Alt &#43; /)" accesskey=/>
<span>Search</span>
<a href="https://howardhu.me/categories/" title="Categories">
<span>Categories</span>
</a>
</li>
<li>
Expand All @@ -99,25 +126,13 @@
</a>
</li>
<li>
<a href="https://discord.gg/ahpmTvhVmp" title="Discord">
<span>Discord</span>&nbsp;
<svg fill="none" shape-rendering="geometricPrecision" stroke="currentColor" stroke-linecap="round"
stroke-linejoin="round" stroke-width="2.5" viewBox="0 0 24 24" height="12" width="12">
<path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"></path>
<path d="M15 3h6v6"></path>
<path d="M10 14L21 3"></path>
</svg>
<a href="https://howardhu.me/about/" title="About">
<span>About</span>
</a>
</li>
<li>
<a href="https://github.com/adityatelange/hugo-PaperMod/wiki/" title="WiKi">
<span>WiKi</span>&nbsp;
<svg fill="none" shape-rendering="geometricPrecision" stroke="currentColor" stroke-linecap="round"
stroke-linejoin="round" stroke-width="2.5" viewBox="0 0 24 24" height="12" width="12">
<path d="M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"></path>
<path d="M15 3h6v6"></path>
<path d="M10 14L21 3"></path>
</svg>
<a href="https://howardhu.me/index.xml" title="Subscribe">
<span>Subscribe</span>
</a>
</li>
</ul>
Expand Down Expand Up @@ -182,6 +197,18 @@
}
};

</script>
<script>
document.getElementById("theme-toggle").addEventListener("click", () => {
if (document.body.className.includes("dark")) {
document.body.classList.remove('dark');
localStorage.setItem("pref-theme", 'light');
} else {
document.body.classList.add('dark');
localStorage.setItem("pref-theme", 'dark');
}
})

</script>
</body>

Expand Down
Loading

0 comments on commit 35b462e

Please sign in to comment.