templates/document.html in asciidoctor-htmlbook-0.0.4 vs templates/document.html in asciidoctor-htmlbook-0.0.5
- old
+ new
@@ -1,10 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
- <title>{{ node.header.title }}</title>
+ {% if node.title %}<title>{{ node.title }}</title>{% endif %}
</head>
<body data-type="book">
+ {% if node.title %}<h1>{{ node.title }}</h1>{% endif %}
+ {% if node.attributes.toc %}
+ <nav data-type="toc">
+ <h1>{{ node.attributes.toc-title }}</h1>
+ {{ node.toc }}
+ </nav>
+ {% endif %}
{{ node.content }}
</body>
</html>