Tweak a bit the test_site test

This commit is contained in:
Vincent Prouillet 2020-06-18 22:29:25 +02:00
parent e47deccf43
commit b30394f862
3 changed files with 10 additions and 1 deletions

View file

@ -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)

View file

@ -9,3 +9,8 @@
{% endfor %}
</div>
{% endblock content %}
{% block script %}
<script src="{{ get_url(path="scripts/hello.js") | safe }}"
integrity="sha384-{{ get_file_hash(path="scripts/hello.js") }}"></script>
{% endblock script %}

View file

@ -7,7 +7,7 @@
<meta name="description" content="{{ config.description }}">
<meta name="author" content="{{ config.extra.author.name }}">
<link href="https://fonts.googleapis.com/css?family=Fira+Mono|Fira+Sans|Merriweather" rel="stylesheet">
<link href="{{ config.base_url }}/site.css" rel="stylesheet">
<link href="{{ get_url(path="/site.css", cachebust=true) | safe }}" rel="stylesheet">
<title>{{ config.title }}</title>
</head>
@ -15,5 +15,8 @@
<div class="content">
{% block content %}Hello{% endblock content %}
</div>
{% block script %}
{% endblock script %}
</body>
</html>