spout/docs/_layouts/default.html
Adrien Loison 859b8d336e [Docs] Force using current protocol scheme for resources and links
If the docs is accessed with https, change all links to be https as well.
2019-10-17 10:32:39 +00:00

40 lines
779 B
HTML
Executable File

<!DOCTYPE html>
<html>
{% assign protocol_scheme = page.url | absolute_url | truncate: 5, "" %}
{%- capture site_url -%}
{%- if protocol_scheme == "https" -%}
<!-- This is a hack to force using HTTPS... -->
<!-- The URL of the docs should be changed in the repo settings instead -->
{{ site.github.url | replace: "http", "https" }}
{%- else -%}
{{ site.github.url }}
{%- endif -%}
{%- endcapture -%}
{% include head.html %}
<body>
{% include header.html %}
{% if page.banner %}
{% include banner.html %}
{% endif %}
{{ content }}
<!--
<div class="page-content">
<div class="wrapper">
</div>
</div>
-->
{% include footer.html %}
{% include algolia.html %}
</body>
</html>