forked from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdistill.html
117 lines (102 loc) · 3.19 KB
/
distill.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<!DOCTYPE html>
<!-- _layouts/distill.html -->
<html>
<head>
{%- include head.html %}
{% include scripts/jquery.html %}
{% include scripts/mathjax.html %}
<!-- Distill js -->
<script src="{{ '/assets/js/distillpub/template.v2.js' | relative_url }}"></script>
<script src="{{ '/assets/js/distillpub/transforms.v2.js' | relative_url }}"></script>
<script src="{{ '/assets/js/distillpub/overrides.js' | relative_url }}"></script>
{% if page._styles %}
<!-- Page/Post style -->
<style type="text/css">
{{ page._styles }}
</style>
{%- endif %}
</head>
<d-front-matter>
<script async type="text/json">{
"title": "{{ page.title }}",
"description": "{{ page.description }}",
"published": "{{ page.date | date: '%B %-d, %Y' }}",
"authors": [
{% for author in page.authors -%}
{
"author": "{{ author.name }}",
"authorURL": "{{ author.url }}",
"affiliations": [
{
"name": "{{ author.affiliations.name }}",
"url": "{{ author.affiliations.url }}"
}
]
}{% if forloop.last == false %},{% endif %}
{% endfor %}
],
"katex": {
"delimiters": [
{
"left": "$",
"right": "$",
"display": false
},
{
"left": "$$",
"right": "$$",
"display": true
}
]
}
}</script>
</d-front-matter>
<body class="{%- if site.navbar_fixed -%}fixed-top-nav{%- endif -%} {%- unless site.footer_fixed -%}sticky-bottom-footer{%- endunless -%}">
<!-- Header -->
{%- include header.html %}
<!-- Content -->
<div class="post distill">
<d-title>
<h1>{{ page.title }}</h1>
<p>{{ page.description }}</p>
</d-title>
<d-byline></d-byline>
<d-article>
{% if page.toc -%}
<d-contents>
<nav class="l-text figcaption">
<h3>Contents</h3>
{% for section in page.toc -%}
<div><a href="#{{ section.name | slugify }}">{{ section.name }}</a></div>
{% if section.subsections -%}
<ul>
{% for subsection in section.subsections -%}
<li><a href="#{{ subsection.name | slugify }}">{{ subsection.name }}</a></li>
{% endfor %}
</ul>
{%- endif -%}
{%- endfor %}
</nav>
</d-contents>
{%- endif %}
{{ content }}
</d-article>
<d-appendix>
<d-footnote-list></d-footnote-list>
<d-citation-list></d-citation-list>
</d-appendix>
<d-bibliography src="{{ page.bibliography | prepend: '/assets/bibliography/' | relative_url }}"></d-bibliography>
{%- if site.disqus_shortname and page.disqus_comments -%}
{% include disqus.html %}
{%- endif %}
{%- if site.giscus.repo and page.giscus_comments -%}
{% include giscus.html %}
{%- endif -%}
</div>
<!-- Footer -->
{%- include footer.html %}
{% include scripts/bootstrap.html %}
{% include scripts/analytics.html %}
{% include scripts/progressBar.html %}
</body>
</html>