Commit a19a6259 authored by Greg Wilson's avatar Greg Wilson
Browse files

Forcing CSS and Javascript to be loaded via HTTPS.

Using `site.github.url` to refer to the repository fails to load resources when the GitHub Pages site is accessed via HTTPS, because `site.github.url` is `http` protocol.  This modifies loads of CSS and Javascript files to always use `https`.
parent 148bfcc9
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
<script src="{{ site.github.url }}/assets/js/jquery.min.js"></script>
<script src="{{ site.github.url }}/assets/js/bootstrap.min.js"></script>
<script src="{{ site.github.url }}/assets/js/lesson.js"></script>
<script src="{{ site.github.url | replace_first: 'http:', 'https:' }}/assets/js/jquery.min.js"></script>
<script src="{{ site.github.url | replace_first: 'http:', 'https:' }}/assets/js/bootstrap.min.js"></script>
<script src="{{ site.github.url | replace_first: 'http:', 'https:' }}/assets/js/lesson.js"></script>
+4 −4
Original line number Diff line number Diff line
@@ -7,10 +7,10 @@
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="last-modified" content="{{ site.time }}">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="search-domain" value="{{ site.github.url }}">
    <link rel="stylesheet" type="text/css" href="{{ site.github.url }}/assets/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="{{ site.github.url }}/assets/css/bootstrap-theme.css" />
    <link rel="stylesheet" type="text/css" href="{{ site.github.url }}/assets/css/lesson.css" />
    <meta name="search-domain" value="{{ site.github.url | replace_first: 'http:', 'https:' }}">
    <link rel="stylesheet" type="text/css" href="{{ site.github.url | replace_first: 'http:', 'https:' }}/assets/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="{{ site.github.url | replace_first: 'http:', 'https:' }}/assets/css/bootstrap-theme.css" />
    <link rel="stylesheet" type="text/css" href="{{ site.github.url | replace_first: 'http:', 'https:' }}/assets/css/lesson.css" />
    {% if site.carpentry == "swc" %}
    <link rel="shortcut icon" type="image/x-icon" href="/favicon-swc.ico" />
    {% endif %}
+3 −3
Original line number Diff line number Diff line
@@ -25,9 +25,9 @@
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="last-modified" content="{{ site.time }}">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" type="text/css" href="{{ site.github.url }}/assets/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="{{ site.github.url }}/assets/css/bootstrap-theme.css" />
    <link rel="stylesheet" type="text/css" href="{{ site.github.url }}/assets/css/lesson.css" />
    <link rel="stylesheet" type="text/css" href="{{ site.github.url | replace_first: 'http:', 'https:' }}/assets/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="{{ site.github.url | replace_first: 'http:', 'https:' }}/assets/css/bootstrap-theme.css" />
    <link rel="stylesheet" type="text/css" href="{{ site.github.url | replace_first: 'http:', 'https:' }}/assets/css/lesson.css" />
    {% if site.carpentry == "swc" %}
    <link rel="shortcut icon" type="image/x-icon" href="/favicon-swc.ico" />
    {% endif %}