aboutsummaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorFran├žois Kooman <fkooman@tuxed.net>2016-06-07 09:27:10 +0200
committerFran├žois Kooman <fkooman@tuxed.net>2016-06-07 09:27:10 +0200
commit7c14e0018152f8d4226ed969909db49a30cfcce9 (patch)
tree3e6273521a0e33d91e3cd41693694c316923a126 /views
parent552b839c8e3b93b65b723d322355faf298153a68 (diff)
downloadwww.tuxed.net-7c14e0018152f8d4226ed969909db49a30cfcce9.zip
www.tuxed.net-7c14e0018152f8d4226ed969909db49a30cfcce9.tar.gz
www.tuxed.net-7c14e0018152f8d4226ed969909db49a30cfcce9.tar.xz
update style a bit
Diffstat (limited to 'views')
-rw-r--r--views/footer.twig8
-rw-r--r--views/index.twig28
-rw-r--r--views/post.twig23
3 files changed, 35 insertions, 24 deletions
diff --git a/views/footer.twig b/views/footer.twig
index 308b1d0..0e2103d 100644
--- a/views/footer.twig
+++ b/views/footer.twig
@@ -1,2 +1,10 @@
+<div class="footer">
+ <p>{{ blogAuthor|e }}</p>
+
+ <a href="mailto:{{ blogAuthorMail|e }}">Mail</a>,
+ <a href="https://twitter.com/{{ blogAuthorTwitter|e }}">Twitter</a>,
+ <a href="https://github.com/{{ blogAuthorGitHub|e }}">GitHub</a>
+</div>
+
</body>
</html>
diff --git a/views/index.twig b/views/index.twig
index bef8660..f8e788e 100644
--- a/views/index.twig
+++ b/views/index.twig
@@ -1,18 +1,20 @@
{% include 'header.twig' %}
-<p>{{ blogDescription|e }}</p>
-<h2>{{ pageTitle|e }}</h2>
-<ul>
-{% for post in postsList %}
-<li>
- [{{post.published|e }}] <a href="{{post.fileName|e }}">{{ post.title|e }}</a>
-</li>
-{% endfor %}
-</ul>
+<div class="content">
-<h3>Author</h3>
-<p>
-Mail <a href="mailto:{{ blogAuthorMail|e }}">{{ blogAuthor|e }}</a>, or Twitter <a href="https://twitter.com/{{ blogAuthorTwitter|e }}">@{{ blogAuthorTwitter|e }}</a>
-</p>
+ <p>
+ <em>{{ blogDescription|e }}</em>
+ </p>
+
+ <h2>{{ pageTitle|e }}</h2>
+ <ul>
+ {% for post in postsList %}
+ <li>
+ [{{post.published|e }}] <a href="{{post.fileName|e }}">{{ post.title|e }}</a>
+ </li>
+ {% endfor %}
+ </ul>
+
+</div> <!-- /content -->
{% include 'footer.twig' %}
diff --git a/views/post.twig b/views/post.twig
index 3e903e7..626d49e 100644
--- a/views/post.twig
+++ b/views/post.twig
@@ -1,18 +1,19 @@
{% include 'header.twig' %}
-<p>&lt; <a href="index.html">Back to Index</a></p>
-{% if post.published %}
-<small>Published on {{ post.published|e }}{% if post.modified %}, last updated on {{ post.modified|e }}{% endif %}</small>
-{% endif %}
+<div class="content">
-<h2>{{ pageTitle|e }}</h2>
+ <p><small><a href="index.html">Index</a></small></p>
-{{ post.htmlContent|raw }}
+ {% if post.published %}
+ <small>{{ post.published|e }}{% if post.modified %} (Updated {{ post.modified|e }}){% endif %}</small>
+ {% endif %}
-<h3>Author</h3>
-<p>
-Mail <a href="mailto:{{ blogAuthorMail|e }}">{{ blogAuthor|e }}</a>, or Twitter <a href="https://twitter.com/{{ blogAuthorTwitter|e }}">@{{ blogAuthorTwitter|e }}</a>
-</p>
+ <h2>{{ pageTitle|e }}</h2>
+
+ {{ post.htmlContent|raw }}
+
+ <p><small><a href="index.html">Index</a></small></p>
+
+</div> <!-- /content -->
-<p>&lt; <a href="index.html">Back to Index</a></p>
{% include 'footer.twig' %}