summaryrefslogtreecommitdiffstats
path: root/blog/_layouts/post.html
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-03-10 19:26:11 +0100
committerHarald Eilertsen <haraldei@anduin.net>2017-03-10 19:26:11 +0100
commit0cb9284d51b16d192f42e2d2a4c12a2911668b2e (patch)
tree365ca4077c408c45da535cacd98eeefb8464cc58 /blog/_layouts/post.html
parentc8ba2958ba509b98896100db2c190ace48d103c8 (diff)
downloadnorsk-urskog-main-0cb9284d51b16d192f42e2d2a4c12a2911668b2e.tar.gz
norsk-urskog-main-0cb9284d51b16d192f42e2d2a4c12a2911668b2e.tar.bz2
norsk-urskog-main-0cb9284d51b16d192f42e2d2a4c12a2911668b2e.zip
First attempt at responsive design for site.
- Droppped sidebar from all pages. - Wrapped post images in a div for easier styling. - Drop the Inferno banner on too small displays. Most stuff works quite well for a first attempt, mthinks.
Diffstat (limited to 'blog/_layouts/post.html')
-rw-r--r--blog/_layouts/post.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/blog/_layouts/post.html b/blog/_layouts/post.html
index 555bdc6..8a3cccb 100644
--- a/blog/_layouts/post.html
+++ b/blog/_layouts/post.html
@@ -5,9 +5,11 @@ layout: default
<article class="post">
{% include post-header.html post = page %}
<section class="post-body">
- {% if page.page-image %}
- {{ page.page-image | img: "magick:resize:590x" }}
- {% endif %}
+ <div class="post-image">
+ {% if page.page-image %}
+ {{ page.page-image | img: "magick:resize:590x" }}
+ {% endif %}
+ </div>
{{ content }}
</section>
<footer>