aboutsummaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorFran├žois Kooman <fkooman@tuxed.net>2017-01-12 23:05:47 +0100
committerFran├žois Kooman <fkooman@tuxed.net>2017-01-12 23:05:47 +0100
commit4fba1f88054a6945639c334e515705eda87a6e1a (patch)
tree4db243efba888cadb88e1f3c38a3bffcc600c31a /views
parenta360a3e0a887094530a974f62907bef547ac42de (diff)
downloadwww.tuxed.net-4fba1f88054a6945639c334e515705eda87a6e1a.zip
www.tuxed.net-4fba1f88054a6945639c334e515705eda87a6e1a.tar.gz
www.tuxed.net-4fba1f88054a6945639c334e515705eda87a6e1a.tar.xz
fix everything, ready for live deploy
Diffstat (limited to 'views')
-rw-r--r--views/header.twig10
-rw-r--r--views/index.twig2
-rw-r--r--views/page.twig2
-rw-r--r--views/post.twig4
4 files changed, 9 insertions, 9 deletions
diff --git a/views/header.twig b/views/header.twig
index 46095a1..a44056e 100644
--- a/views/header.twig
+++ b/views/header.twig
@@ -5,7 +5,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ blogTitle|e }} - {{ pageTitle|e }}</title>
- <link rel="stylesheet" type="text/css" href="css/screen.css">
+ <link rel="stylesheet" type="text/css" href="{{ toRoot }}css/screen.css">
</head>
<body>
@@ -17,16 +17,16 @@
<ul class="pages">
{% if 'index.html' == activePage %}
- <li class="active"><a href="index.html">Blog</a></li>
+ <li class="active"><a href="{{ toRoot }}index.html">Blog</a></li>
{% else %}
- <li><a href="index.html">Blog</a></li>
+ <li><a href="{{ toRoot }}index.html">Blog</a></li>
{% endif %}
{% for p in pagesList %}
{% if p.fileName == activePage %}
- <li class="active"><a href="{{ p.fileName }}">{{ p.title }}</a></li>
+ <li class="active"><a href="{{ toRoot }}{{ p.fileName }}">{{ p.title }}</a></li>
{% else %}
- <li><a href="{{ p.fileName }}">{{ p.title }}</a></li>
+ <li><a href="{{ toRoot }}{{ p.fileName }}">{{ p.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
diff --git a/views/index.twig b/views/index.twig
index 8a744a2..ecfc149 100644
--- a/views/index.twig
+++ b/views/index.twig
@@ -7,7 +7,7 @@
{% for post in postsList %}
{% if post.publish %}
<li>
- <a href="{{post.fileName|e }}">{{ post.title|e }}</a> <small>{{post.published|e }}</small>
+ <a href="{{ toRoot }}blog/{{post.fileName|e }}">{{ post.title|e }}</a> <small>{{post.published|e }}</small>
</li>
{% endif %}
{% endfor %}
diff --git a/views/page.twig b/views/page.twig
index 503e3c1..bdba2f2 100644
--- a/views/page.twig
+++ b/views/page.twig
@@ -8,6 +8,6 @@
</div> <!-- /content -->
-<p><small><a href="index.html">Return to Index</a></small></p>
+<p><small><a href="{{ toRoot }}index.html">Return to Index</a></small></p>
{% include 'footer.twig' %}
diff --git a/views/post.twig b/views/post.twig
index 8cdcefa..3cb0ef5 100644
--- a/views/post.twig
+++ b/views/post.twig
@@ -1,6 +1,6 @@
{% include 'header.twig' %}
-<!-- <p><small><a href="index.html">Return to Index</a></small></p> -->
+<!-- <p><small><a href="{{ toRoot }}index.html">Return to Index</a></small></p> -->
<div class="content">
@@ -22,6 +22,6 @@
</div> <!-- /content -->
-<p><small><a href="index.html">Return to Index</a></small></p>
+<p><small><a href="{{ toRoot}}index.html">Return to Index</a></small></p>
{% include 'footer.twig' %}