first commit
This commit is contained in:
10
templates/head.html
Normal file
10
templates/head.html
Normal 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" />
|
||||
34
templates/index.html
Normal file
34
templates/index.html
Normal file
@@ -0,0 +1,34 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<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>
|
||||
<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">
|
||||
<script>
|
||||
// page title
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
const hostname = window.location.hostname;
|
||||
document.title = document.title + hostname;
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="toc"></div>
|
||||
<div class="text-space">
|
||||
$partial("templates/navbar.html")$
|
||||
<main role="main">
|
||||
$body$
|
||||
</main>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
9
templates/navbar.html
Normal file
9
templates/navbar.html
Normal file
@@ -0,0 +1,9 @@
|
||||
<!--<header class="no-print">
|
||||
<nav class="navbar">
|
||||
<a href="/">Home</a>
|
||||
<div class="navright">
|
||||
<a href="/draft">Drafts</a>
|
||||
<a href="/about">About</a>
|
||||
</div>
|
||||
</nav>
|
||||
</header>-->
|
||||
41
templates/note.html
Normal file
41
templates/note.html
Normal file
@@ -0,0 +1,41 @@
|
||||
<!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>
|
||||
<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>
|
||||
8
templates/notes.html
Normal file
8
templates/notes.html
Normal file
@@ -0,0 +1,8 @@
|
||||
<h1 class="pagetitle">$title$</h1>
|
||||
<ul>
|
||||
$for(posts)$
|
||||
<li>
|
||||
<a href="$url$">$title$</a>
|
||||
</li>
|
||||
$endfor$
|
||||
</ul>
|
||||
Reference in New Issue
Block a user