-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
zola_book.html
35 lines (35 loc) · 950 Bytes
/
zola_book.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
{% set manifest = load_data(path="manifest.json") %}
<!DOCTYPE html>
<html lang="tr">
<head>
<meta charset="utf-8">
<title>{% block title %}{{ manifest.title }}{% endblock title %}</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<div>
<img src="{{ section.extra.coverimg }}" title="{{ config.title }}" />
</div>
<article>
<h1>{{ manifest.title }}</h1>
{%- if manifest.subtitle %}
<h2>{{ manifest.subtitle }}</h2>
{% endif -%}
{%- if manifest.creator %}
{% for person in manifest.creator %}
<p class="creator"><label>{{ person["file-as"] }}:</label> {{ person.text }}</p>
{% endfor %}
{% endif -%}
{%- if manifest.abstract %}
<section name="abstract">
{{ manifest.abstract | markdown | safe }}
</section>
{% endif -%}
<section name="resources">
{{ section.content | safe }}
</section>
</article>
</main>
</body>
</html>