Add Hakyll site generator and assets

Add site executable and Haskell modules (site.hs, ChaoDoc.hs,
SideNoteHTML.hs, Pangu.hs) to handle Pandoc/Hakyll compilation,
theorem/sidenote processing and CJK spacing. Add CSS, font files,
favicon, templates, Makefile, and a CSL bibliographic style. Update
.gitignore to ignore build artifacts.
This commit is contained in:
2026-04-01 23:38:05 +08:00
parent e7f7873fa8
commit e84a1b8c78
34 changed files with 1754 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
<!doctype html>
<html lang="en">
<head>
$partial("templates/head.html")$
</head>
<body>
<div class="toc">
<div id="contents-big">
<p class="mini-header">Contents</p>
<a id="up-arrow" href="#">#</a>
$toc$
</div>
</div>
<div class="text-space">
$partial("templates/navbar.html")$
<main role="main">
<h1 class="pagetitle">$title$</h1>
$body$
</main>
</div>
</body>
</html>
+10
View File
@@ -0,0 +1,10 @@
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="googlebot" content="noindex" />
<title>$title$</title>
<link rel="stylesheet" href="/css/fonts.css" />
<link rel="stylesheet" href="/css/default.css" />
<link rel="stylesheet" href="/css/pygentize.css" />
<link rel="stylesheet" href="/css/chao-theorems.css" />
<link rel="stylesheet" href="/css/sidenotes.css" />
+5
View File
@@ -0,0 +1,5 @@
<header class="no-print">
<nav>
<a href="/">Home</a>
</nav>
</header>
+5
View File
@@ -0,0 +1,5 @@
<ul class="post-list">
$for(posts)$
<li><a href="$url$">$title$</a></li>
$endfor$
</ul>
+5
View File
@@ -0,0 +1,5 @@
<article>
<section class="body">
$body$
</section>
</article>