From 5b4c6b75ca487d0bb93e4bc6c9443a5f4ef1a330 Mon Sep 17 00:00:00 2001
From: Crementif <26669564+Crementif@users.noreply.github.com>
Date: Tue, 8 Jan 2019 20:03:24 +0100
Subject: [PATCH] Fix relative linking to resources on websites
I'll push a more absolute fix later, but this should be fine for now for the website atleast.
---
docs/_layouts/page.html | 13 ++++---------
docs/index.html | 18 +++++++++---------
2 files changed, 13 insertions(+), 18 deletions(-)
diff --git a/docs/_layouts/page.html b/docs/_layouts/page.html
index 88746ca3..4be7976c 100644
--- a/docs/_layouts/page.html
+++ b/docs/_layouts/page.html
@@ -4,16 +4,16 @@
{{ page.title }} - {{ site.title }}
-
+
{%- comment -%} Include page specific .css and .js files {%- endcomment -%}
{%- for static_file in site.static_files -%}
{%- assign file_directory = static_file.path | split: "/" | pop | join: "/" -%}
{%- assign match_html_file = static_file.basename | append: ".html" -%}
{%- if match_html_file == page.name and static_file.extname == ".css" and file_directory == "/assets/css" %}
-
+
{% endif -%}
{%- if match_html_file == page.name and static_file.extname == ".js" and file_directory == "/assets/javascript" %}
-
+
{% endif -%}
{%- endfor %}
@@ -52,11 +52,6 @@
-
-