Skip to content

Commit

Permalink
fix: force https for connection to cdn
Browse files Browse the repository at this point in the history
fix: remove not required charset at script tag
  • Loading branch information
Rotzbua committed Sep 27, 2023
1 parent b576da9 commit 1704204
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions _includes/extensions/code-highlight.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/default.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/highlight.min.js"></script>
<!-- and it's easy to individually load additional languages -->
<script charset="UTF-8"
<script
src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.1/languages/go.min.js"
async></script>

Expand Down
4 changes: 2 additions & 2 deletions _includes/extensions/google-translate.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</ul>
</span>

<script type="text/javascript">
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: '{{ lang }}',
Expand Down Expand Up @@ -105,4 +105,4 @@
}
</script>

<script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" async></script>
<script src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" async></script>
6 changes: 3 additions & 3 deletions _includes/extensions/photo-swipe.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script
src="//cdnjs.cloudflare.com/ajax/libs/photoswipe/5.3.7/umd/photoswipe-lightbox.umd.min.js" async></script>
src="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/5.3.7/umd/photoswipe-lightbox.umd.min.js" async></script>
<script
src="//cdnjs.cloudflare.com/ajax/libs/photoswipe/5.3.7/umd/photoswipe.umd.min.js" async></script>
src="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/5.3.7/umd/photoswipe.umd.min.js" async></script>
<link
href="//cdnjs.cloudflare.com/ajax/libs/photoswipe/5.3.7/photoswipe.min.css"
href="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/5.3.7/photoswipe.min.css"
rel="stylesheet"
/>
<style>
Expand Down

0 comments on commit 1704204

Please sign in to comment.