[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 -20
View File
@@ -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
View File
@@ -1,6 +1,7 @@
---
layout: default
---
<article class="post">
<div class="wrapper">
<header class="post-header">
-15
View File
@@ -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>