aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--posts/soundtouch-iot.md3
-rw-r--r--screen.css11
-rw-r--r--views/index.twig4
-rw-r--r--views/post.twig12
4 files changed, 20 insertions, 10 deletions
diff --git a/posts/soundtouch-iot.md b/posts/soundtouch-iot.md
index 357d71f..9a80eec 100644
--- a/posts/soundtouch-iot.md
+++ b/posts/soundtouch-iot.md
@@ -37,7 +37,8 @@ it to the Internet! But using new devices without giving your data to
manufacturers should not be that difficult! There is no need to integrate so
tightly with online services...
-**Update**: I managed to disable the "setup mode"!
+**Update**: I managed to disable the "setup mode":
+
* Connect to the WiFi network created by the SoundTouch;
* Go to `http://192.0.2.1` and enter the details of any existing network, I
created an access point on my laptop without providing any Internet access;
diff --git a/screen.css b/screen.css
index 147d36e..67b3652 100644
--- a/screen.css
+++ b/screen.css
@@ -4,16 +4,21 @@ body {
line-height: 1.6;
margin: 0;
padding: 0;
+ background-color: #f0f0f0;
+ text-align: center;
}
div.content {
- max-width: 800px;
+ border-radius: 10px;
+ text-align: justify;
+ max-width: 800px;
margin: 2em auto;
- padding: 0 10px;
+ padding: 1em;
+ background-color: #fff;
}
div.footer {
- text-align: center;
+/* text-align: center;*/
margin: 0;
padding: 0.5em 0;
color: #888;
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' %}