Browse Source

adding the overview template + minor changes to the rest

master
manetta 4 years ago
parent
commit
9d535e0ec9
  1. 2
      pelicanconf.py
  2. 5
      themes/default/static/css/main.css
  3. 15
      themes/default/templates/categories.html
  4. 2
      themes/default/templates/category.html

2
pelicanconf.py

@ -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'

5
themes/default/static/css/main.css

@ -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;

15
themes/default/templates/categories.html

@ -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 %}

2
themes/default/templates/category.html

@ -3,6 +3,6 @@
{% block title %}{{ SITENAME }} - {{ category }} category{% endblock %}
{% block content_title %}
<h1 class="category">{{ category }}</h1>
<h1 class="category">{{ category }}</h1>
{% endblock %}

Loading…
Cancel
Save