Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
e6d9316b
Unverified
Commit
e6d9316b
authored
7 years ago
by
XhmikosR
Committed by
GitHub
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Use the SRI hashes for the live site's assets. (#25282)
parent
1f490ec1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
_includes/header.html
+1
-1
_includes/header.html
_includes/scripts.html
+2
-2
_includes/scripts.html
with
3 additions
and
3 deletions
+3
-3
_includes/header.html
+
1
-
1
View file @
e6d9316b
...
...
@@ -14,7 +14,7 @@
<!-- Bootstrap core CSS -->
{% 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 %}
<link
href=
"{{ site.baseurl }}/dist/css/bootstrap.css"
rel=
"stylesheet"
>
{% endif %}
...
...
This diff is collapsed.
Click to expand it.
_includes/scripts.html
+
2
-
2
View file @
e6d9316b
<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
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 -%}
<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 -%}
<script
src=
"{{ site.baseurl }}/dist/js/bootstrap.js"
></script>
{%- endif -%}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment