[docs] Fix site_url - take 2
This commit is contained in:
parent
db32a7c7db
commit
0a0b1f7196
@ -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 %}
|
||||
|
12
docs/_includes/set-global-site-url.html
Normal file
12
docs/_includes/set-global-site-url.html
Normal 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 -%}
|
@ -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 %}
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
<article class="post">
|
||||
<div class="wrapper">
|
||||
<header class="post-header">
|
||||
|
@ -1,15 +0,0 @@
|
||||
---
|
||||
layout: default
|
||||
---
|
||||
<article class="post" itemscope itemtype="http://schema.org/BlogPosting">
|
||||
|
||||
<header class="post-header">
|
||||
<h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
|
||||
<p class="post-meta"><time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">{{ page.date | date: "%b %-d, %Y" }}</time>{% if page.author %} • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>{% endif %}</p>
|
||||
</header>
|
||||
|
||||
<div class="post-content" itemprop="articleBody">
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
</article>
|
@ -4,6 +4,8 @@ title: Getting Started
|
||||
permalink: /getting-started/
|
||||
---
|
||||
|
||||
{% include set-global-site-url.html %}
|
||||
|
||||
This guide will help you install {{ site.spout_html }} and teach you how to use it.
|
||||
|
||||
## Requirements
|
||||
|
@ -4,6 +4,8 @@ title: Guides
|
||||
permalink: /guides/
|
||||
---
|
||||
|
||||
{% include set-global-site-url.html %}
|
||||
|
||||
These guides focus on common and more advanced usages of {{ site.spout_html }}.<br>
|
||||
If you are just starting with {{ site.spout_html }}, check out the [Getting Started page]({{ site_url }}/getting-started/) and the [Documentation]({{ site_url }}/docs/) first.
|
||||
|
||||
|
@ -5,6 +5,8 @@ title: Spout - Read and write spreadsheets, quickly and at scale
|
||||
permalink: /
|
||||
---
|
||||
|
||||
{% include section-supported-spreadsheet-types.html %}
|
||||
{% include section-fast-and-scalable.html %}
|
||||
{% include section-why-use-spout.html %}
|
||||
{% include set-global-site-url.html %}
|
||||
|
||||
{% include section-supported-spreadsheet-types.html site_url=site_url %}
|
||||
{% include section-fast-and-scalable.html site_url=site_url %}
|
||||
{% include section-why-use-spout.html site_url=site_url %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user