aboutsummaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2018-02-27 12:51:53 +0100
committerNoah Loomans <noahloomans@gmail.com>2018-02-27 12:51:53 +0100
commit1d000946313c5758b2935ed8cc9a64858172ff74 (patch)
treec403157570c20b0c1f27d8c4eba8568d1d7ced01 /_layouts
parenta3b0f7cf267f5bebcc581a9a0a06ef8616cab9c4 (diff)
Use relative urls
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/random-project.html3
-rw-r--r--_layouts/slides.html5
2 files changed, 5 insertions, 3 deletions
diff --git a/_layouts/random-project.html b/_layouts/random-project.html
index 4c7f650..bae9a24 100644
--- a/_layouts/random-project.html
+++ b/_layouts/random-project.html
@@ -1,5 +1,6 @@
---
---
+{% include relBase.html %}
<!DOCTYPE html>
<html>
{% include head.html %}
@@ -7,7 +8,7 @@
{% if page.branding == true %}
<div class="random-project__header">
<div class="logo">
- <img src="/assets/face.jpg" alt="Noah Loomans" class="logo">
+ <img src="{{relBase}}assets/face.jpg" alt="Noah Loomans" class="logo">
</div>
<div class="text">Random Project</div>
<div class="grow"></div>
diff --git a/_layouts/slides.html b/_layouts/slides.html
index db2243a..47be94e 100644
--- a/_layouts/slides.html
+++ b/_layouts/slides.html
@@ -1,9 +1,10 @@
<!DOCTYPE html>
+{% include relBase.html %}
<html>
<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
- <link rel="stylesheet" href="/slides/reveal.js/reveal.css">
+ <link rel="stylesheet" href="{{relBase}}slides/reveal.js/reveal.css">
<link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet">
{% for style in page.styles %}
<link rel="stylesheet" href="{{ style }}">
@@ -11,7 +12,7 @@
</head>
<body>
{{ content }}
- <script src="/slides/reveal.js/reveal.js"></script>
+ <script src="{{relBase}}slides/reveal.js/reveal.js"></script>
{% for script in page.scripts %}
<script src="{{ script }}"></script>
{% endfor %}