aboutsummaryrefslogtreecommitdiffstats
path: root/docs/_layouts/ebook/pdf_footer.html
blob: 679e5628b0fd1363f5c28a9631453d47944bbc35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{% extends "./page.html" %}
{% block body %}
<div id="pdf-footer" class="pdf-footer">
    <span class="footer-left">Version {{ config.version }}</span>
    <span class="footer-right">{{ page.num }}</span>
    <span class="footer-center">{{ config.published }}</span>
</div>

<!-- Allow to hide footer for some pages using hidepagefooters config in book.json -->
<script>
    if (({% for num in config.hidepagefooters %}{{ page.num }} == {{ num }} || {% endfor %}false)) document.getElementById('pdf-footer').style.display = 'none'
</script>
{% endblock %}