aboutsummaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorFran├žois Kooman <fkooman@tuxed.net>2016-06-07 15:19:36 +0200
committerFran├žois Kooman <fkooman@tuxed.net>2016-06-07 15:19:36 +0200
commit1906abc79702c6acc55d482606a29e4f7e30d42f (patch)
treed9f3b924503637f582f2b342885283b6e6653f65 /views
parent718d1fec2583579feac5a9cf7f44b7541afdc0ec (diff)
downloadwww.tuxed.net-1906abc79702c6acc55d482606a29e4f7e30d42f.zip
www.tuxed.net-1906abc79702c6acc55d482606a29e4f7e30d42f.tar.gz
www.tuxed.net-1906abc79702c6acc55d482606a29e4f7e30d42f.tar.xz
update style and fix soundtouch post
Diffstat (limited to 'views')
-rw-r--r--views/index.twig4
-rw-r--r--views/post.twig12
2 files changed, 10 insertions, 6 deletions
diff --git a/views/index.twig b/views/index.twig
index f8e788e..f7438d1 100644
--- a/views/index.twig
+++ b/views/index.twig
@@ -1,11 +1,11 @@
{% include 'header.twig' %}
-<div class="content">
-
<p>
<em>{{ blogDescription|e }}</em>
</p>
+<div class="content">
+
<h2>{{ pageTitle|e }}</h2>
<ul>
{% for post in postsList %}
diff --git a/views/post.twig b/views/post.twig
index 626d49e..b1cea08 100644
--- a/views/post.twig
+++ b/views/post.twig
@@ -1,19 +1,23 @@
{% include 'header.twig' %}
-<div class="content">
-
<p><small><a href="index.html">Index</a></small></p>
+<div class="content">
+
{% if post.published %}
- <small>{{ post.published|e }}{% if post.modified %} (Updated {{ post.modified|e }}){% endif %}</small>
+ <small>{{ post.published|e }}</small>
{% endif %}
<h2>{{ pageTitle|e }}</h2>
{{ post.htmlContent|raw }}
- <p><small><a href="index.html">Index</a></small></p>
+ {% if post.modified %}
+ <p><small>Last Updated: {{ post.modified|e }}</small></p>
+ {% endif %}
</div> <!-- /content -->
+<p><small><a href="index.html">Index</a></small></p>
+
{% include 'footer.twig' %}