[docs] Fix site_url - take 2

This commit is contained in:
Adrien Loison authored and Adrien Loison committed 2019-10-17 13:12:40 +00:00
1 parent db32a7c7db
commit 0a0b1f7196
12 files changed
+30 -45

No files matched your search

+1 -20
View File
@@ -1,18 +1,7 @@
<!DOCTYPE html>
<html>
{% comment %}
This is a hack to force using HTTPS...
The URL of the docs should be changed in the repo settings instead
{% endcomment %}
{% assign protocol_scheme = page.url | absolute_url | truncate: 5, "" %}
{%- capture site_url -%}
{%- if protocol_scheme == "https" -%}
{{ site.github.url | replace: "http", "https" }}
{%- else -%}
{{ site.github.url }}
{%- endif -%}
{%- endcapture -%}
{% include set-global-site-url.html %}
{% include head.html %}
@@ -26,14 +15,6 @@
{{ content }}
<!--
<div class="page-content">
<div class="wrapper">
</div>
</div>
-->
{% include footer.html %}
{% include algolia.html %}