add integrity hash for Font Awesome script (#1922)

* add integrity hash for Font Awesome script

As the script is loaded from an external CDN (use.fontawesome.com), its integrity must be ensured mainly for security reasons.
This hash must be updated together with the exact version of Font Awesome, as given on their website.

* Update to FontAwesome 5.5.0
This commit is contained in:
Léo Grange 2018-11-13 15:34:54 +01:00 committed by Michael Rose
parent 9aedf9a694
commit d0ee15eb5c

View file

@ -9,7 +9,7 @@
{% endfor %} {% endfor %}
{% else %} {% else %}
<script src="{{ '/assets/js/main.min.js' | relative_url }}"></script> <script src="{{ '/assets/js/main.min.js' | relative_url }}"></script>
<script src="https://use.fontawesome.com/releases/v5.3.1/js/all.js"></script> <script src="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU"></script>
{% endif %} {% endif %}
{% if site.search == true or page.layout == "search" %} {% if site.search == true or page.layout == "search" %}