Skip to content

Commit

Permalink
[docs] Fix site_url
Browse files Browse the repository at this point in the history
  • Loading branch information
adrilo committed Oct 17, 2019
1 parent 859b8d3 commit db32a7c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
<!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" -%}
<!-- This is a hack to force using HTTPS... -->
<!-- The URL of the docs should be changed in the repo settings instead -->
{{ site.github.url | replace: "http", "https" }}
{%- else -%}
{{ site.github.url }}
Expand Down

0 comments on commit db32a7c

Please sign in to comment.