From 156054ab06a83cbfd55165b64b715b41bb24a237 Mon Sep 17 00:00:00 2001 From: boyska Date: Mon, 4 Jun 2018 18:03:40 +0200 Subject: [PATCH] css titoli pagine --- themes/hackit0x15/static/css/hackit.css | 10 ++++++- themes/hackit0x15/templates/article_list.html | 29 +++++++++++-------- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/themes/hackit0x15/static/css/hackit.css b/themes/hackit0x15/static/css/hackit.css index dee68da..ecf4cdd 100644 --- a/themes/hackit0x15/static/css/hackit.css +++ b/themes/hackit0x15/static/css/hackit.css @@ -52,7 +52,15 @@ a:focus, } -h2 { +#content h2 { + text-align: center; + width: 100%; + background-color: white; + padding: 1em 0; + color: black; + margin: 0; + left: 0; + font-size: 200%; text-align: center; } diff --git a/themes/hackit0x15/templates/article_list.html b/themes/hackit0x15/templates/article_list.html index 2d3c8cd..000253d 100644 --- a/themes/hackit0x15/templates/article_list.html +++ b/themes/hackit0x15/templates/article_list.html @@ -1,19 +1,24 @@ {% extends "base.html" %} +{# questa macro e' utile per mostrare articoli dentro ad una lista; non e' la migliore per mostrare un +articolo come contenuto principale della pagina #} +{% macro article_in_list(article) %} +
+

{{ article.title }}

+ {% if DISPLAY_ARTICLE_INFO_ON_INDEX %} +
+ {% include "includes/article_info.html" %} +
+ {% endif %} +
{{ article.summary }} + {% include 'includes/comment_count.html' %} + more ... +
+
+{% endmacro %} {% block content %} {% if articles %} {% for article in (articles_page.object_list if articles_page else articles) %} -
-

{{ article.title }}

- {% if DISPLAY_ARTICLE_INFO_ON_INDEX %} -
- {% include "includes/article_info.html" %} -
- {% endif %} -
{{ article.summary }} - {% include 'includes/comment_count.html' %} - more ... -
-
+ {{ article_in_list(article) }}
{% endfor %} {% endif %}