Add Subresource Integrity (SRI) support (#164)
This commit is contained in:
parent
09e037d535
commit
d1da39b34b
5 changed files with 20 additions and 6 deletions
7
_includes/ext-css.html
Normal file
7
_includes/ext-css.html
Normal 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 %}
|
Loading…
Add table
Add a link
Reference in a new issue