From 815defb65fc4b272f396af1bbe1a801909c4402d Mon Sep 17 00:00:00 2001 From: boyska Date: Sat, 18 Jul 2020 14:28:18 +0200 Subject: [PATCH] tema news --- themes/hackit0x16/static/css/main.css | 4 ++-- themes/hackit0x16/templates/index.html | 28 +++----------------------- 2 files changed, 5 insertions(+), 27 deletions(-) diff --git a/themes/hackit0x16/static/css/main.css b/themes/hackit0x16/static/css/main.css index 9edd3a3..76a1292 100644 --- a/themes/hackit0x16/static/css/main.css +++ b/themes/hackit0x16/static/css/main.css @@ -244,7 +244,6 @@ img.left, figure.left {float: left; margin: 0 2em 2em 0;} Featured *****************/ #featured { - background: #fff; margin-bottom: 2em; overflow: hidden; padding: 20px; @@ -369,8 +368,9 @@ li:last-child .hentry, #content > .hentry {border: 0; margin: 0;} #content > .hentry {padding: 1em 0;} .hentry img{display : none ;} .entry-title {font-size: 3em; margin-bottom: 10px; margin-top: 0;} -.entry-title a:link, .entry-title a:visited {text-decoration: none; color: #333;} +.entry-title a:link, .entry-title a:visited {text-decoration: none; color: #ccc;} .entry-title a:visited {background-color: #fff;} +.news article .entry-content { font-family: Arial; } .hentry .post-info * {font-style: normal;} diff --git a/themes/hackit0x16/templates/index.html b/themes/hackit0x16/templates/index.html index 355966f..30716e6 100644 --- a/themes/hackit0x16/templates/index.html +++ b/themes/hackit0x16/templates/index.html @@ -1,25 +1,10 @@ {% extends "base.html" %} {% block content_title %}{% endblock %} {% block content %} +
{% if articles %} {% for article in articles_page.object_list %} - {# First item #} - {% if loop.first and not articles_page.has_previous() %} - - {% if loop.length > 1 %} -
-

Other articles

-
-
    - {% endif %} - {# other items #} - {% else %} {% if loop.first %}
      @@ -37,7 +22,6 @@ {% include 'comments.html' %}
- {% endif %} {% if loop.last %} {% if loop.length > 1 or articles_page.has_other_pages() %} @@ -46,14 +30,8 @@ {% endif %} {% endif %} - {% endif %} + {% endif %} {% endfor %} -{% else %} -
-

Pages

- {% for page in pages %} -
  • {{ page.title }}
  • - {% endfor %} -
    {% endif %} + {% endblock content %}