adding the overview template + minor changes to the rest

This commit is contained in:
manetta 2020-09-04 18:19:01 +02:00
parent 69403e6c18
commit 9d535e0ec9
4 changed files with 20 additions and 4 deletions

View File

@ -19,7 +19,7 @@ TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
#STATIC_PATHS = ['extra/favicon.ico', 'images']
STATIC_PATHS = ['extra/favicon.ico', 'images']
THEME = 'themes/default'
THEME_STATIC_DIR = 'theme'

View File

@ -13,15 +13,16 @@ header#banner{
text-decoration: none;
}
nav#menu{
width: 100%;
width: calc(100% - 1em);
text-align: center;
background-color: magenta;
border-radius: 1em;
padding: 0.5em;
}
nav#menu li{
background-color: white;
border-radius: 1em;
margin:1em 0;
margin:0.5em 0;
padding:1em;
list-style: none;
display: inline-block;

View File

@ -5,3 +5,18 @@
{% block content_title %}
<h1>Overview</h1>
{% endblock %}
{% block content %}
{% for category, articles in categories|sort %}
<h1 class="category">{{ category }}</h1>
{% for article in articles %}
<article class="hentry">
<header>
<h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
</header>
<div class="entry-content"> {{ article.summary }} </div>
<footer class="post-info"></footer>
</article>
{% endfor %}
{% endfor %}
{% endblock %}