better structure and css

This commit is contained in:
Adrian Amaglio 2023-06-01 13:10:54 +02:00
parent 3f83f92941
commit b3e773bef1
4 changed files with 29 additions and 17 deletions

View File

@ -93,6 +93,18 @@ a.fa {
text-decoration: none; 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 */
#header { #header {

View File

@ -56,19 +56,9 @@ format(slug=tag.slug) }}{% endif %}" type="application/rss+xml" rel="alternate"
</ul> </ul>
</nav> </nav>
<!-- Header -->
<header>
{% block header %}
{% if page and page.title %}
<h1>{{ page.title}}</h1>
{% endif %}
{% endblock %}
</header>
<!-- Main content --> <!-- Main content -->
<main> <main>
{% block content %} {% block content %}
{{ page.content }}
{% endblock %} {% endblock %}
</main> </main>

View File

@ -1,19 +1,19 @@
{% extends "base.html" %} {% extends "page.html" %}
{% block content %} {% block content %}
{{page.content}} {{ super() }}
<div class="padding"></div> <div class="padding"></div>
<section> <section>
<ol> <ol>
{% for letter, articles in articles | sortbyletter %} {% for letter, arts in articles | sortbyletter %}
<li> <li>
<span class="letter">{{letter}}</span> <span class="letter">{{letter}}</span>
<ol> <ol>
{% for article in articles %} {% for article in arts %}
<li> <li>
<a href="{{article.url}}"> <a class="article_link" href="{{article.url}}">
<h4>{{ article.title }}</h4> <b>{{ article.title }}</b>
<p>{{ article.content | titleless | styleless }}</p> <span>{{ article.content | titleless | styleless | begin }}</span>
</a> </a>
</li> </li>
{% endfor %} {% endfor %}

View File

@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block title %}
{{ super() }} — {{ page.title }}
{% endblock %}
{% block content %}
<h1>{{ page.title}}</h1>
{{ page.content}}
{% endblock %}