From 4027ed65610f5bde460c59a075a4b56faa491d52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Sun, 21 Feb 2016 18:17:05 +0100 Subject: [PATCH] Add pdf footer/header --- _layouts/ebook/pdf_footer.html | 8 ++++++++ _layouts/ebook/pdf_header.html | 7 +++++++ _layouts/layout.html | 14 +++++++++++++- _layouts/website/page.html | 14 -------------- 4 files changed, 28 insertions(+), 15 deletions(-) create mode 100644 _layouts/ebook/pdf_footer.html create mode 100644 _layouts/ebook/pdf_header.html diff --git a/_layouts/ebook/pdf_footer.html b/_layouts/ebook/pdf_footer.html new file mode 100644 index 0000000..3870a52 --- /dev/null +++ b/_layouts/ebook/pdf_footer.html @@ -0,0 +1,8 @@ +{% extends "layout.html" %} + +{% block body %} + +{% endblock %} diff --git a/_layouts/ebook/pdf_header.html b/_layouts/ebook/pdf_header.html new file mode 100644 index 0000000..046b1ab --- /dev/null +++ b/_layouts/ebook/pdf_header.html @@ -0,0 +1,7 @@ +{% extends "layout.html" %} + +{% block body %} +
+ {{ page.title }} +
+{% endblock %} diff --git a/_layouts/layout.html b/_layouts/layout.html index 8849a47..8c74423 100644 --- a/_layouts/layout.html +++ b/_layouts/layout.html @@ -9,7 +9,19 @@ {% if book.author %}{% endif %} {% if book.isbn %}{% endif %} - {% block style %}{% endblock %} + {% block style %} + + {% for resource in plugins.resources.css %} + {% if resource.url %} + + {% else %} + + {% endif %} + {% endfor %} + {% for type, style in styles %} + + {% endfor %} + {% endblock %} {% block head %}{% endblock %} diff --git a/_layouts/website/page.html b/_layouts/website/page.html index b9fc8a5..39162de 100644 --- a/_layouts/website/page.html +++ b/_layouts/website/page.html @@ -36,20 +36,6 @@ {% endblock %} -{% block style %} - - {% for resource in plugins.resources.css %} - {% if resource.url %} - - {% else %} - - {% endif %} - {% endfor %} - {% for type, style in styles %} - - {% endfor %} -{% endblock %} - {% block body %}