2017-10-03 16:00:13 +01:00
{% include 'block_header_open.html' %}
2018-06-01 10:48:03 +01:00
< title > {{ taxonomy.title }}< / title >
< link rel = "alternate" type = "application/atom+xml" title = "{{ taxonomy.title }} feed" href = "{{ taxonomy.feed }}" / >
< link rel = "self" href = "{{ site.url }}{{ taxonomy.feed }}/" / >
2017-10-03 16:00:13 +01:00
{% include 'block_header_close.html' %}
2018-04-30 20:44:04 +01:00
{% if taxonomy.add_welcome %}
< aside class = "siteinfo limit" >
2018-06-01 10:48:03 +01:00
< p > Hi!< / p >
< p > Your are on a personal homepage. It has been my home one the Internet for many years, although the URL had changed a few times. It's < a href = "https://indieweb.org/" > IndieWeb< / a > -compatible, and all content is produced by me. < / p >
< p > This page is a feed of everything that gets on the site.< / p >
2018-04-30 20:44:04 +01:00
< / aside >
{% endif %}
2017-10-03 16:00:13 +01:00
< section class = "content-body h-feed" >
2018-06-16 17:53:42 +01:00
< nav >
< p class = "follow" >
< a title = "follow {{ taxonomy.title }}" rel = "feed" href = "{{ site.url }}{{ taxonomy.feed }}" >
< svg class = "icon" width = "16" height = "16" >
< use xlink:href = "#icon-rss" / >
< / svg >
< / a >
2018-06-01 10:48:03 +01:00
< / p >
2018-06-16 17:53:42 +01:00
< / nav >
2018-06-01 10:48:03 +01:00
< h1 class = "p-name hide" > {{ taxonomy.name }}< / h1 >
{% for post in posts %}
< article class = "h-entry hentry" lang = "{{ post.lang }}" >
< header >
< h2 > {% include 'Singular_title.html' %}< / h2 >
< / header >
{% if post.summary %}
< div class = "e-summary entry-summary" >
{{ post.summary }}
< span class = "more" >
< a href = "/{{ post.slug }}" title = "{{ post.title }}" >
{% if post.lang == 'hu' %}Tovább »{% else %}Continue »{% endif %}
< / a >
< / span >
< / div >
{% else %}
< div class = "e-content entry-content" >
{% if post.photo %}
{{ post.photo }}
{% endif %}
{{ post.html }}
< / div >
{% endif %}
< / article >
{% endfor %}
2017-10-03 16:00:13 +01:00
< / section >
{% if taxonomy.total > 1 %}
2018-06-01 10:48:03 +01:00
{# based on: http://dev.dbl-a.com/symfony-2-0/symfony2-and-twig-pagination/ #}
< nav class = "pagination" >
< ul >
{% if taxonomy.page > 1 %}
{% set prev = taxonomy.page - 1 %}
< li >
< a rel = "prev" href = "{{ taxonomy.url }}page/{{ prev }}" > «< / a >
< / li >
< li >
< a rel = "prev" href = "{{ taxonomy.url }}" > 1< / a >
< / li >
{% endif %}
{% if taxonomy.page - 4 > 0 %}
< li >
< span class = "page-numbers dots" > …< / span >
< / li >
{% endif %}
{% if ( taxonomy.page - 1 > 1 ) %}
< li >
< a href = "{{ taxonomy.url }}page/{{ taxonomy.page - 1 }}" > {{ taxonomy.page - 1 }}< / a >
< / li >
{% endif %}
< li >
< span class = "page-numbers taxonomy.page" > {{ taxonomy.page }}< / span >
< / li >
{% if ( taxonomy.page + 1 < = taxonomy.total -1 ) %}
< li >
< a href = "{{ taxonomy.url }}page/{{ taxonomy.page + 1 }}" > {{ taxonomy.page + 1 }}< / a >
< / li >
{% endif %}
{% if taxonomy.page + 3 < taxonomy.total % }
< li >
< span class = "page-numbers dots" > …< / span >
< / li >
{% endif %}
{% if taxonomy.page != taxonomy.total %}
< li >
< a href = "{{ taxonomy.url }}page/{{ taxonomy.total }}" > {{ taxonomy.total }}< / a >
< / li >
{% endif %}
{% if taxonomy.page < taxonomy.total % }
{% set next = taxonomy.page + 1 %}
< li >
< a rel = "next" href = "{{ taxonomy.url }}page/{{ next }}" > »< / a >
< / li >
{% endif %}
< / ul >
< / nav >
2017-10-03 16:00:13 +01:00
{% endif %}
{% include 'block_footer.html' %}