Browse Source

typographic details in the overview

master
manetta 4 years ago
parent
commit
26c868c3c1
  1. 11
      themes/default/static/css/main.css
  2. 24
      themes/default/templates/categories.html
  3. 2
      themes/default/templates/index.html

11
themes/default/static/css/main.css

@ -58,11 +58,11 @@ section#content{
article{ article{
margin: 0 0 2em; margin: 0 0 2em;
} }
article:first-of-type{ article:first-child{
background-color: beige; background-color: beige;
padding:2em 3em; padding:2em 3em;
} }
article:first-of-type:before{ article:first-child:before{
content: "Start of Section"; content: "Start of Section";
display: block; display: block;
margin:0 auto; margin:0 auto;
@ -73,11 +73,14 @@ article{
/* big pink boxes for the section titles */ /* big pink boxes for the section titles */
h1.category{ h1.category{
width: calc(100% - 4em); width: calc(100% - 4em);
background-color: beige; background-color: #ec25ec;
padding: 2em; color:white;
border-radius: 1em;
padding: 2em 2em 2.5em 2em;
margin: 2em 0; margin: 2em 0;
font-size: 32px; font-size: 32px;
text-align: center; text-align: center;
font-weight: normal;
} }
ul.navprevnext{ ul.navprevnext{

24
themes/default/templates/categories.html

@ -9,16 +9,20 @@
{% for category, articles in categories | sort(attribute="slug") %} {% for category, articles in categories | sort(attribute="slug") %}
<a class="nounderline" href="{{ SITEURL }}/{{ category.url }}" title="Permalink to {{ category|striptags }}"> <a class="nounderline" href="{{ SITEURL }}/{{ category.url }}" title="Permalink to {{ category|striptags }}">
<h1 class="category">{{ category }}</h1> {% set c = category|replace("-","</em><br><br>") %}
{% set c = '<em>'+c %}
<h1 class="category">{{ c }}</h1>
</a> </a>
{% for article in articles %} <section>
<article class="hentry"> {% for article in articles | reverse %}
<header> <article class="hentry">
<h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2> <header>
</header> <h2 class="entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></h2>
<div class="entry-content"> {{ article.summary }} </div> </header>
<footer class="post-info"></footer> <div class="entry-content"> {{ article.summary }} </div>
</article> <footer class="post-info"></footer>
{% endfor %} </article>
{% endfor %}
</section>
{% endfor %} {% endfor %}
{% endblock %} {% endblock %}

2
themes/default/templates/index.html

@ -3,6 +3,7 @@
{% block content_title %} {% block content_title %}
{% endblock %} {% endblock %}
<section>
{% for article in articles_page.object_list|sort(attribute="slug")%} {% for article in articles_page.object_list|sort(attribute="slug")%}
<article class="hentry"> <article class="hentry">
<header> <header>
@ -12,4 +13,5 @@
<footer class="post-info"></footer> <footer class="post-info"></footer>
</article></li> </article></li>
{% endfor %} {% endfor %}
</section>
{% endblock content %} {% endblock content %}

Loading…
Cancel
Save