mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-28 10:24:19 +01:00
Use the SRI hashes for the live site's assets. (#25282)
This commit is contained in:
parent
1f490ec165
commit
e6d9316ba0
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
<!-- Bootstrap core CSS -->
|
||||||
{% if site.github %}
|
{% if site.github %}
|
||||||
<link href="{{ site.baseurl }}/dist/css/bootstrap.min.css" rel="stylesheet">
|
<link href="{{ site.baseurl }}/dist/css/bootstrap.min.css" rel="stylesheet" integrity="{{ site.cdn.css_hash }}" crossorigin="anonymous">
|
||||||
{% else %}
|
{% else %}
|
||||||
<link href="{{ site.baseurl }}/dist/css/bootstrap.css" rel="stylesheet">
|
<link href="{{ site.baseurl }}/dist/css/bootstrap.css" rel="stylesheet">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
<script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script>
|
<script src="{{ site.cdn.jquery }}" integrity="{{ site.cdn.jquery_hash }}" crossorigin="anonymous"></script>
|
||||||
<script>window.jQuery || document.write('<script src="{{ site.baseurl }}/assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
|
<script>window.jQuery || document.write('<script src="{{ site.baseurl }}/assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
|
||||||
|
|
||||||
<script src="{{ site.baseurl }}/assets/js/vendor/popper.min.js"></script>
|
<script src="{{ site.baseurl }}/assets/js/vendor/popper.min.js"{% if site.github %} integrity="{{ site.cdn.popper_hash }}" crossorigin="anonymous"{% endif %}></script>
|
||||||
|
|
||||||
{%- if site.github -%}
|
{%- if site.github -%}
|
||||||
<script src="{{ site.baseurl }}/dist/js/bootstrap.min.js"></script>
|
<script src="{{ site.baseurl }}/dist/js/bootstrap.min.js" integrity="{{ site.cdn.js_hash }}" crossorigin="anonymous"></script>
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
<script src="{{ site.baseurl }}/dist/js/bootstrap.js"></script>
|
<script src="{{ site.baseurl }}/dist/js/bootstrap.js"></script>
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
Loading…
Reference in New Issue
Block a user