[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

+12
View File
@@ -0,0 +1,12 @@
{% 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 -%}