mirror of
http://101.35.51.105:3000/congyu/Hakysidian.git
synced 2026-04-27 21:40:50 +08:00
614de591ba
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.
43 lines
1.3 KiB
HTML
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>
|