From b30394f8625ee7e89e6c35ccbcb5d775189cb5f9 Mon Sep 17 00:00:00 2001 From: Vincent Prouillet Date: Thu, 18 Jun 2020 22:29:25 +0200 Subject: [PATCH] Tweak a bit the test_site test --- CHANGELOG.md | 1 + test_site/templates/index.html | 5 +++++ test_site/themes/sample/templates/index.html | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 284e58d7..7c21902b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ - Add support for SVG in `get_image_metadata` - Fix parsing of dates in arrays in `extra` - Add a `--force` argument to `zola init` to allow creating a Zola site in a non-empty directory +- Make themes more flexible: `include` can now be used ## 0.11.0 (2020-05-25) diff --git a/test_site/templates/index.html b/test_site/templates/index.html index b991c0e5..5a098951 100644 --- a/test_site/templates/index.html +++ b/test_site/templates/index.html @@ -9,3 +9,8 @@ {% endfor %} {% endblock content %} + +{% block script %} + +{% endblock script %} diff --git a/test_site/themes/sample/templates/index.html b/test_site/themes/sample/templates/index.html index 73158127..a6d721e8 100644 --- a/test_site/themes/sample/templates/index.html +++ b/test_site/themes/sample/templates/index.html @@ -7,7 +7,7 @@ - + {{ config.title }} @@ -15,5 +15,8 @@
{% block content %}Hello{% endblock content %}
+ + {% block script %} + {% endblock script %}