Skip to content

Commit

Permalink
add integrity hash for Font Awesome script (mmistakes#1922)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Kristaba authored and mmistakes committed Nov 13, 2018
1 parent 7ac772a commit 5a0487f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% endfor %}
{% else %}
<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 %}

{% if site.search == true or page.layout == "search" %}
Expand Down

0 comments on commit 5a0487f

Please sign in to comment.