Files
dotfiles/common/md_to_pdf/template.html
T

62 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html$if(lang)$ lang="$lang$"$else$ lang="en"$endif$>
<head>
<meta charset="utf-8">
$if(basehref)$
<base href="$basehref$">
$endif$
<title>$if(title)$$title$$else$$pagetitle$$endif$</title>
$for(css)$
<link rel="stylesheet" href="$css$">
$endfor$
<style>
@page {
size: $if(papersize)$$papersize$$else$letter$endif$;
margin: $if(margin)$$margin$$else$0.95in 1.1in$endif$;
}
html { font-size: $if(fontsize)$$fontsize$$else$11pt$endif$; }
$if(bodyfont)$
:root { --font-body: $bodyfont$; }
$endif$
$if(headfont)$
:root { --font-head: $headfont$; }
$endif$
$if(monofont)$
:root { --font-mono: $monofont$; }
$endif$
$if(ragged)$
body { text-align: left; }
$endif$
</style>
$for(header-includes)$
$header-includes$
$endfor$
</head>
<body>
$if(title)$
<header class="title-block">
<h1 class="doc-title">$title$</h1>
$if(subtitle)$
<p class="doc-subtitle">$subtitle$</p>
$endif$
$if(author)$
<p class="doc-meta">$for(author)$$author$$sep$<span class="sep">&bull;</span>$endfor$$if(date)$<span class="sep">&bull;</span>$date$$endif$</p>
$else$
$if(date)$
<p class="doc-meta">$date$</p>
$endif$
$endif$
</header>
$endif$
$if(toc)$
<nav id="TOC" role="doc-toc">
<h2 class="toc-title">$if(toc-title)$$toc-title$$else$Contents$endif$</h2>
$table-of-contents$
</nav>
$endif$
<main>
$body$
</main>
</body>
</html>