2018-05-09 21:09:52 +02:00
|
|
|
{% extends "base" %}
|
2018-05-13 19:19:23 +02:00
|
|
|
{% import "macros" as macros %}
|
2018-05-09 21:09:52 +02:00
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ blog.title }}
|
|
|
|
{% endblock title %}
|
|
|
|
|
2018-07-26 18:23:08 +02:00
|
|
|
{% block header %}
|
|
|
|
<a href=".">{{ blog.title }}</a>
|
|
|
|
{% endblock header %}
|
|
|
|
|
2018-05-09 21:09:52 +02:00
|
|
|
{% block content %}
|
2018-07-26 18:36:38 +02:00
|
|
|
<h1>{{ blog.title }} <small>~{{ blog.fqn }}</small></h1>
|
2018-05-12 15:31:09 +02:00
|
|
|
<p>{{ blog.summary }}</p>
|
2018-07-18 23:08:49 +02:00
|
|
|
<p>
|
|
|
|
{{ "{{ count }} authors in this blog: " | _n(singular="One author in this blog: ", count = n_authors) }}
|
|
|
|
{% for author in authors %}
|
2018-07-26 16:36:19 +02:00
|
|
|
<a class="author" href="/@/{{ author.fqn }}">{{ author.name }}</a>{% if not loop.last %},{% endif %}
|
2018-07-18 23:08:49 +02:00
|
|
|
{% endfor %}
|
|
|
|
</p>
|
2018-07-21 16:58:30 +02:00
|
|
|
<p>
|
|
|
|
{{ "{{ count }} articles in this blog" | _n(singular="One article in this blog", count = n_articles) }}
|
|
|
|
</p>
|
|
|
|
|
2018-06-10 20:16:25 +02:00
|
|
|
<section>
|
2018-09-01 22:16:38 +02:00
|
|
|
<h2>
|
|
|
|
{{ "Latest articles" | _ }}
|
|
|
|
<small><a href="/@/{{ blog.fqn }}/atom.xml"><i title="Atom feed" class="fa fa-rss"></i></a></small>
|
|
|
|
</h2>
|
2018-07-20 18:42:35 +02:00
|
|
|
{% if posts | length < 1 %}
|
2018-06-17 17:26:15 +02:00
|
|
|
<p>{{ "No posts to see here yet." | _ }}</p>
|
2018-06-10 20:16:25 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if is_author %}
|
2018-07-26 19:00:23 +02:00
|
|
|
<a href="/~/{{ blog.fqn }}/new/" class="button inline-block">{{ "New article" | _ }}</a>
|
2018-06-10 20:16:25 +02:00
|
|
|
{% endif %}
|
|
|
|
<div class="cards">
|
2018-07-20 18:42:35 +02:00
|
|
|
{% for article in posts %}
|
2018-06-10 20:16:25 +02:00
|
|
|
{{ macros::post_card(article=article) }}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2018-07-25 14:29:34 +02:00
|
|
|
{{ macros::paginate(page=page, total=n_pages) }}
|
2018-06-10 20:16:25 +02:00
|
|
|
</section>
|
2018-05-09 21:09:52 +02:00
|
|
|
{% endblock content %}
|