-
Notifications
You must be signed in to change notification settings - Fork 335
/
Copy pathtemplate.html
61 lines (51 loc) · 932 Bytes
/
template.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!-- Based on https://github.com/quarto-dev/quarto-cli/blob/main/src/resources/formats/html/pandoc/template.html -->
<!DOCTYPE html>
<html lang="$lang$">
<head>
<title>$pagetitle$</title>
<!-- Needed for testing but not used in final output -->
<style>
$styles.html()$
</style>
$for(css)$
<link rel="stylesheet" href="$css$" />
$endfor$
$for(header-includes)$
$header-includes$
$endfor$
</head>
<body>
<div class="includes-before">
$for(include-before)$
$include-before$
$endfor$
</div>
<div class="meta">
$if(title)$
<h1>$title$</h1>
$endif$
$if(subtitle)$
<p class="subtitle">$subtitle$</p>
$endif$
$for(author)$
<p class="author">$author$</p>
$endfor$
$if(date)$
<p class="date">$date$</p>
$endif$
$if(abstract)$
<div class="abstract">
$abstract$
</div>
$endif$
</div>
<main>
$body$
</main>
<div class="includes-after">
$for(include-after)$
$include-after$
$endfor$
</div>
</body>
</html>