Files
sxlxc 614de591ba Add notes list and integrate into templates
New partial templates/notes-list.html to render the notes list.
Add .notes-list CSS for styling and ensure contents areas use it.
Refactor site.hs: add loadNoteLinks and provide a "notes" listField
used by index and note pages.
2026-03-24 14:56:45 +08:00

43 lines
1.3 KiB
HTML

<!doctype html>
<html lang="en">
<head>
$partial("templates/head.html")$
</head>
<body $if(isZh)$class="lang-zh" $endif$>
<div class="toc">
<!-- A table of contents on the left side, but only for screens
that are big enough -->
<div id="contents-big">
<p class="mini-header">Notes <a id="up-arrow" href="/"></a></p>
$partial("templates/notes-list.html")$
<p class="mini-header">Contents <a id="up-arrow" href="#"></a></p>
$toc$
</div>
</div>
<div class="text-space">
<main role="main">
<h1 class="pagetitle">$title$</h1>
<article>
<section class="subtitle">
$if(subtitle)$
$subtitle$
$endif$
</section>
<section class="body">
$body$
</section>
</article>
</main>
<footer class="no-print">
<!--Site proudly generated by
<a href="http://jaspervdj.be/hakyll">Hakyll</a>.
<a href="https://github.com/congyu711/Hakyllsite">Source</a> on Github.
License <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0 </a>-->
</footer>
</div>
</body>
</html>