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
templates/default.html Normal file
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>