diff options
author | Stefan Zeiger <szeiger@novocode.com> | 2016-11-28 20:07:28 +0100 |
---|---|---|
committer | Stefan Zeiger <szeiger@novocode.com> | 2016-11-28 20:07:28 +0100 |
commit | 9bf28eedc435e0fa79b1b5db441ae2326f23cc32 (patch) | |
tree | 1c6e1d847e93bb2d4ad895e2ce001e6a4d71dc09 /spec | |
parent | 35f8908c214b5458ffe32c782dc81055773f5fb4 (diff) | |
download | scala-9bf28eedc435e0fa79b1b5db441ae2326f23cc32.tar.gz scala-9bf28eedc435e0fa79b1b5db441ae2326f23cc32.tar.bz2 scala-9bf28eedc435e0fa79b1b5db441ae2326f23cc32.zip |
Use https links to JS and CSS in the spec when serving from https
The spec is published on a server that supports https
(https://www.scala-lang.org/files/archive/spec/2.11/) and this comes up
as the default in search results (as it should) but the link to
MathJAX is hardcoded to http, which prevents any web browser that cares
about security from loading it.
This commit changes the links to MathJAX and to the Highlight.js
stylesheet to be scheme-relative (like the link to JQuery already was).
Diffstat (limited to 'spec')
-rw-r--r-- | spec/_layouts/default.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/_layouts/default.yml b/spec/_layouts/default.yml index 69791d26ad..d41d045311 100644 --- a/spec/_layouts/default.yml +++ b/spec/_layouts/default.yml @@ -15,9 +15,9 @@ } }); </script> - <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/2.3-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> + <script type="text/javascript" src="//cdn.mathjax.org/mathjax/2.3-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> <script src="//code.jquery.com/jquery-2.1.3.min.js"></script> - <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.2/styles/default.min.css"> + <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.2/styles/default.min.css"> <!-- need to use include to see value of page.chapter variable --> <style type="text/css"> {% include numbering.css %} |