Add Subresource Integrity (SRI) support (#164)

This commit is contained in:
Tony Ho 2017-01-28 10:19:00 +11:00 committed by Dean Attali
parent 09e037d535
commit d1da39b34b
5 changed files with 20 additions and 6 deletions

7
_includes/ext-css.html Normal file
View file

@ -0,0 +1,7 @@
{% if include.css.sri %}
<link href="{{ include.css.href }}" rel="stylesheet" integrity="{{ include.css.sri }}" crossorigin="anonymous">
{% elsif include.css.href %}
<link rel="stylesheet" href="{{ include.css.href }}" />
{% else %}
<link rel="stylesheet" href="{{ include.css }}" />
{% endif %}