From b3e773bef104bc85197b7aaec158b22410e7013b Mon Sep 17 00:00:00 2001 From: Adrian Amaglio Date: Thu, 1 Jun 2023 13:10:54 +0200 Subject: [PATCH] better structure and css --- themes/default/static/css/main.css | 12 ++++++++++++ themes/default/templates/base.html | 10 ---------- themes/default/templates/liste.html | 14 +++++++------- themes/default/templates/page.html | 10 ++++++++++ 4 files changed, 29 insertions(+), 17 deletions(-) create mode 100644 themes/default/templates/page.html diff --git a/themes/default/static/css/main.css b/themes/default/static/css/main.css index ef6a71f..d34f5f5 100644 --- a/themes/default/static/css/main.css +++ b/themes/default/static/css/main.css @@ -93,6 +93,18 @@ a.fa { text-decoration: none; } +/* Liste */ + +a.article_link { + text-decoration:none; + color:default; +} + +a.article_link b { + font-size: 1.1em; + font-weight: bold; +} + /* Header */ #header { diff --git a/themes/default/templates/base.html b/themes/default/templates/base.html index f1169d3..added94 100644 --- a/themes/default/templates/base.html +++ b/themes/default/templates/base.html @@ -56,19 +56,9 @@ format(slug=tag.slug) }}{% endif %}" type="application/rss+xml" rel="alternate" - -
- {% block header %} - {% if page and page.title %} -

{{ page.title}}

- {% endif %} - {% endblock %} -
-
{% block content %} - {{ page.content }} {% endblock %}
diff --git a/themes/default/templates/liste.html b/themes/default/templates/liste.html index 7a3d287..ac9ef40 100644 --- a/themes/default/templates/liste.html +++ b/themes/default/templates/liste.html @@ -1,19 +1,19 @@ -{% extends "base.html" %} +{% extends "page.html" %} {% block content %} - {{page.content}} + {{ super() }}
    - {% for letter, articles in articles | sortbyletter %} + {% for letter, arts in articles | sortbyletter %}
  1. {{letter}}
      - {% for article in articles %} + {% for article in arts %}
    1. - -

      {{ article.title }}

      -

      {{ article.content | titleless | styleless }}

      +
      + {{ article.title }} + {{ article.content | titleless | styleless | begin }}
    2. {% endfor %} diff --git a/themes/default/templates/page.html b/themes/default/templates/page.html new file mode 100644 index 0000000..296970f --- /dev/null +++ b/themes/default/templates/page.html @@ -0,0 +1,10 @@ +{% extends "base.html" %} + +{% block title %} + {{ super() }} — {{ page.title }} +{% endblock %} + +{% block content %} +

      {{ page.title}}

      + {{ page.content}} +{% endblock %}