[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
@@ -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 %}
|
||||
|
||||
|
||||
Reference in new issue
Block a user