Update default HTML template and style

This commit is contained in:
Dimitri Lozeve 2020-04-14 11:50:32 +02:00
parent 5995ece64a
commit 0efca8e59d
28 changed files with 2074 additions and 395 deletions

View file

@ -3,10 +3,14 @@
<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="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
<meta name="description" content="Dimitri Lozeve's blog: $title$">
$if(keywords)$
<meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$">
$endif$
<title>Dimitri Lozeve - $title$</title>
<link rel="stylesheet" href="/css/tufte.css" />
<link rel="stylesheet" href="/css/pandoc.css" />
<link rel="stylesheet" href="/css/syntax.css" />
<!-- KaTeX CSS styles -->
@ -21,22 +25,47 @@
</head>
<body>
<header>
<div class="logo">
<a href="/">Dimitri Lozeve</a>
</div>
<nav>
<a href="/">Home</a>
<a href="/projects.html">Projects</a>
<a href="/archive.html">Archive</a>
<a href="/contact.html">Contact</a>
</nav>
</header>
<article>
$if(title)$
<header>
<div class="logo">
<a href="/">Dimitri Lozeve</a>
</div>
<nav>
<a href="/">Home</a>
<a href="/projects.html">Projects</a>
<a href="/archive.html">Archive</a>
<a href="/contact.html">Contact</a>
</nav>
<main role="main">
<h1>$title$</h1>
$body$
</main>
<h1 class="title">$title$</h1>
$if(subtitle)$
<p class="subtitle">$subtitle$</p>
$endif$
$if(date)$
<p class="byline">$date$$if(author)$ &ndash; $author$$endif$</p>
$else$
$if(author)$
<p class="byline">$author$</p>
$endif$
$endif$
</header>
$endif$
<!-- <header> -->
<!-- </header> -->
$if(toc)$
<nav id="$idprefix$TOC">
$toc$
</nav>
$endif$
</article>
$body$
<!-- <main role="main"> -->
<!-- $body$ -->
<!-- </main> -->
<footer>
Site proudly generated by