[docs] Fix site_url
This commit is contained in:
parent
859b8d336e
commit
ebf4bca831
@ -1,10 +1,13 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<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, "" %}
|
{% assign protocol_scheme = page.url | absolute_url | truncate: 5, "" %}
|
||||||
{%- capture site_url -%}
|
{%- capture site_url -%}
|
||||||
{%- if protocol_scheme == "https" -%}
|
{%- 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" }}
|
{{ site.github.url | replace: "http", "https" }}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
{{ site.github.url }}
|
{{ site.github.url }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user