t73f.de

Check-in [44def24e0e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:[0ad4217469] Separate posts by year
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:44def24e0e55fa0fba648397dcd86d2ca5e35a1f
User & Date: dkreuz 2016-04-29 15:27:12
Context
2016-05-09
17:09
Change fonts check-in: 79573ff486 user: dkreuz tags: trunk
2016-04-29
15:27
[0ad4217469] Separate posts by year check-in: 44def24e0e user: dkreuz tags: trunk
2016-04-28
16:36
Make border smaller check-in: 4995f08fb6 user: dkreuz tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to assets/static/style.css.

229
230
231
232
233
234
235










236
237
238
239
240
241
242
  padding-left: 1em;
}

.no-number {
  list-style-type: none;
  padding-left: 0;
}











@media screen and (max-width: 768px) {
  header {
    text-align: center;
  }
  header h1 {
    padding: 0.2em 0em 0.2em 0em;







>
>
>
>
>
>
>
>
>
>







229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
  padding-left: 1em;
}

.no-number {
  list-style-type: none;
  padding-left: 0;
}

.article_year {
  text-align: center;
}
.article_year:before {
  content: "— ";
}
.article_year:after {
  content: " —";
}

@media screen and (max-width: 768px) {
  header {
    text-align: center;
  }
  header h1 {
    padding: 0.2em 0em 0.2em 0em;

Changes to templates/blog.html.

4
5
6
7
8
9
10
11
12
13









14
15
16
17
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
{{ render_heading(this) }}
<div style="position: absolute; top: 0.5em; right: 0.5em;">
<a href="{{ "./feed.xml"|url }}"><img alt="Atom 1.0 feed" src="{{ "/static/rss48.png"|asseturl }}" /></a>
</div>
{{ this.body }}
{% set current_year = "" %}
<ol class="no-number">
{%- for post in this.children %}









<li>{{ render_blog_date_url(post) }}</li>
{%- endfor %}
</ol>
{% endblock %}







|
<

>
>
>
>
>
>
>
>
>




4
5
6
7
8
9
10
11

12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
{{ render_heading(this) }}
<div style="position: absolute; top: 0.5em; right: 0.5em;">
<a href="{{ "./feed.xml"|url }}"><img alt="Atom 1.0 feed" src="{{ "/static/rss48.png"|asseturl }}" /></a>
</div>
{{ this.body }}
{%- set current_year = "" %}

{%- for post in this.children %}
{%- set post_year = post.pub_date|dateformat("YYYY") %}
{%- if current_year != post_year %}
{%- if current_year %}
</ol>
{%- endif %}
<h2 class="article_year">{{ post_year }}</h2>
<ol class="no-number">
{%- set current_year = post_year %}
{%- endif %}
<li>{{ render_blog_date_url(post) }}</li>
{%- endfor %}
</ol>
{% endblock %}