[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
@@ -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 %}
|
||||
@@ -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,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 %}
|
||||
|
||||
@@ -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