[docs] Fix site_url - take 2
This commit is contained in:
1 parent
db32a7c7db
commit
0a0b1f7196
12 files changed
+30
-45
No files matched your search
@@ -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 -%}
|
||||
Reference in new issue
Block a user