aboutsummaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorFran├žois Kooman <fkooman@tuxed.net>2016-06-13 11:59:42 +0200
committerFran├žois Kooman <fkooman@tuxed.net>2016-06-13 11:59:42 +0200
commitaebb5ca6151ec45ca0dc516bf292d46a019bfb97 (patch)
tree0000526aab2d5e8ac49bb9955073cfab9196db12 /views
parentfe886fbdffd77d3c6e7e8034b1693f91f20f6dec (diff)
downloadwww.tuxed.net-aebb5ca6151ec45ca0dc516bf292d46a019bfb97.zip
www.tuxed.net-aebb5ca6151ec45ca0dc516bf292d46a019bfb97.tar.gz
www.tuxed.net-aebb5ca6151ec45ca0dc516bf292d46a019bfb97.tar.xz
update css, allow for writing unpublished posts
Diffstat (limited to 'views')
-rw-r--r--views/index.twig8
1 files changed, 5 insertions, 3 deletions
diff --git a/views/index.twig b/views/index.twig
index f7438d1..5700c5b 100644
--- a/views/index.twig
+++ b/views/index.twig
@@ -9,9 +9,11 @@
<h2>{{ pageTitle|e }}</h2>
<ul>
{% for post in postsList %}
- <li>
- [{{post.published|e }}] <a href="{{post.fileName|e }}">{{ post.title|e }}</a>
- </li>
+ {% if post.publish %}
+ <li>
+ [{{post.published|e }}] <a href="{{post.fileName|e }}">{{ post.title|e }}</a>
+ </li>
+ {% endif %}
{% endfor %}
</ul>