From d629b9f78b4d85d4f36ee9eccbd0ef56ba2cade9 Mon Sep 17 00:00:00 2001 From: manetta Date: Wed, 6 Mar 2019 14:21:54 +0100 Subject: [PATCH] added the featured images to the index page --- themes/varia/static/css/stylesheet.css | 13 +++++++++++++ themes/varia/templates/index.html | 15 +++++++++++---- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/themes/varia/static/css/stylesheet.css b/themes/varia/static/css/stylesheet.css index e69de29b..87d29065 100644 --- a/themes/varia/static/css/stylesheet.css +++ b/themes/varia/static/css/stylesheet.css @@ -0,0 +1,13 @@ +body{ + /*background-color:yellow;*/ +} + +#content .post{ + position: relative; + display: inline-block; + width: 250px; + vertical-align: top; +} + #content .post img{ + width: 250px; + } \ No newline at end of file diff --git a/themes/varia/templates/index.html b/themes/varia/templates/index.html index ab4bc345..1e495bbd 100644 --- a/themes/varia/templates/index.html +++ b/themes/varia/templates/index.html @@ -7,8 +7,12 @@
    {% for article in articles_page.object_list %} -
  1. +
  2. {% endfor %}
{% if articles_page.has_other_pages() %}