first
This commit is contained in:
commit
77a53e06a5
21 changed files with 1070 additions and 0 deletions
11
templates/foot.html
Normal file
11
templates/foot.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
$if(hide-footer)$$else$
|
||||
<footer>
|
||||
<hr>
|
||||
<a href=/all-posts.html>all posts</a> ·
|
||||
<a href=/all-tags.html>all tags</a>
|
||||
</footer>
|
||||
$endif$
|
||||
|
||||
$for(include-after)$
|
||||
$include-after$
|
||||
$endfor$
|
24
templates/head.html
Normal file
24
templates/head.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html$if(lang)$ lang=$lang$$endif$$if(dir)$ dir=$dir$$endif$>
|
||||
<meta charset=utf-8>
|
||||
|
||||
<link rel=stylesheet href=/style/page.css>
|
||||
$if(show-toc)$
|
||||
<link rel=stylesheet href=/style/counters.css>
|
||||
$endif$
|
||||
$for(css)$
|
||||
<link rel=stylesheet href=/style/$css$>
|
||||
$endfor$
|
||||
|
||||
$for(header-includes)$
|
||||
$header-includes$
|
||||
$endfor$
|
||||
$if(math)$
|
||||
$math$
|
||||
$endif$
|
||||
|
||||
<title>$pagetitle$</title>
|
||||
|
||||
$for(include-before)$
|
||||
$include-before$
|
||||
$endfor$
|
15
templates/meta.html
Normal file
15
templates/meta.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
$head()$
|
||||
|
||||
$if(title)$
|
||||
<header>
|
||||
<h1>$title$</h1>
|
||||
</header>
|
||||
$endif$
|
||||
|
||||
$if(posts)$
|
||||
$postlist()$
|
||||
$elseif(tags)$
|
||||
$taglist()$
|
||||
$endif$
|
||||
|
||||
$foot()$
|
46
templates/post.html
Normal file
46
templates/post.html
Normal file
|
@ -0,0 +1,46 @@
|
|||
$head()$
|
||||
|
||||
<header>
|
||||
$if(title)$
|
||||
<h1>$title$</h1>
|
||||
$endif$
|
||||
<div class=meta>
|
||||
$if(date)$
|
||||
<h2 class=date>$date$</h2>
|
||||
$endif$
|
||||
$if(tags)$
|
||||
<nav class=tags>
|
||||
tags:
|
||||
<ul>
|
||||
$for(tags)$
|
||||
<li><a href=/tag-$it$.html>$it$</a>
|
||||
$endfor$
|
||||
</ul>
|
||||
</nav>
|
||||
$endif$
|
||||
</div>
|
||||
<hr>
|
||||
</header>
|
||||
|
||||
|
||||
$if(show-toc)$
|
||||
<nav id=toc>
|
||||
<h2>Contents</h2>
|
||||
$table-of-contents$
|
||||
</nav>
|
||||
|
||||
$endif$
|
||||
<main>
|
||||
$body$
|
||||
|
||||
$if(blah)$
|
||||
<dl>
|
||||
$for(blah)$
|
||||
<dt>$blah.a$
|
||||
<dd>$blah.b$
|
||||
$endfor$
|
||||
</dl>
|
||||
$endif$
|
||||
</main>
|
||||
|
||||
$foot()$
|
9
templates/postlist.html
Normal file
9
templates/postlist.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<main>
|
||||
<ul>
|
||||
$for(posts)$
|
||||
<li>
|
||||
<a href=$it.file$.html>$it.title$</a>
|
||||
($it.date$)
|
||||
$endfor$
|
||||
</ul>
|
||||
</main>
|
9
templates/taglist.html
Normal file
9
templates/taglist.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<main>
|
||||
<ul>
|
||||
$for(tags)$
|
||||
<li>
|
||||
<a href=tag-$it.slug$.html>$it.name$</a>
|
||||
($it.count$)
|
||||
$endfor$
|
||||
</ul>
|
||||
</main>
|
Loading…
Add table
Add a link
Reference in a new issue