[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 -1
View File
@@ -12,6 +12,6 @@
{% endif %}
{% if jekyll.environment == 'production' %}
{% include analytics.html %}
{% include analytics.html %}
{% endif %}
</head>
@@ -8,4 +8,4 @@
Writing an ODS file with millions of rows? {{ site.spout_html }} can do it in no time!
{% endcapture %}
{% include section.html %}
{% include section.html site_url = include.site_url %}
@@ -11,4 +11,4 @@
Switching from one type to another is ridiculously easy!
{% endcapture %}
{% include section.html %}
{% include section.html site_url=include.site_url %}
+3 -2
View File
@@ -13,8 +13,9 @@
<li class="feature-check">{{ site.spout_html }}'s API is {{emS}}developer-friendly{{emE}}.</li>
</ul><br>
<div class="btn-wrapper">
<a href="{{ site_url }}/getting-started/" class="page-link"><button class="btn">Get started</button></a>
<a href="{{ include.site_url }}/getting-started/" class="page-link"><button class="btn">Get started</button></a>
</div>
{% endcapture %}
{% include section.html %}
{% include section.html site_url=include.site_url %}
+1 -2
View File
@@ -1,4 +1,3 @@
<div class="section {{ sectionClass }} vertical-align-middle">
<div class="wrapper">
<div class="description mbl">
@@ -9,7 +8,7 @@
{% assign sectionIconsAsArray = sectionIcons | split:'~~' %}
<div class="icons">
{% for icon in sectionIconsAsArray %}
<img src="{{ site_url }}/images/{{ icon }}"/>
<img src="{{ include.site_url }}/images/{{ icon }}"/>
{% endfor %}
</div>
{% endif %}
+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 -%}