book-example/templates/chapter.html

24 lines
481 B
HTML

<article class="chapter">
<h2>
<a href="{{ page.path }}">
{{ page.title }}
</a>
</h2>
<p>{{ page.description }}</p>
{% if page.extra.audio %}
<p>Insert audio widget here: {{page.extra.audio}}
{% endif %}
{% if page.extra.pdf %}
<p>Embed the PDF here: {{ page.extra.pdf }}
{% endif %}
</article>
{% if page.extra.debug %}
<details>
<summary>debug (`page`)</summary>
<pre>{{ page | json_encode(pretty=true) | safe }}</pre>
</details>
{% endif %}