2018-05-09 19:09:52 +00:00
|
|
|
{% extends "base" %}
|
2018-05-13 17:19:23 +00:00
|
|
|
{% import "macros" as macros %}
|
2018-05-09 19:09:52 +00:00
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ blog.title }}
|
|
|
|
{% endblock title %}
|
|
|
|
|
2018-07-26 16:23:08 +00:00
|
|
|
{% block header %}
|
2018-09-24 18:16:32 +00:00
|
|
|
<a href="/~/{{ blog.fqn }}">{{ blog.title }}</a>
|
2018-07-26 16:23:08 +00:00
|
|
|
{% endblock header %}
|
|
|
|
|
2018-05-09 19:09:52 +00:00
|
|
|
{% block content %}
|
2018-07-26 16:36:38 +00:00
|
|
|
<h1>{{ blog.title }} <small>~{{ blog.fqn }}</small></h1>
|
2018-05-12 13:31:09 +00:00
|
|
|
<p>{{ blog.summary }}</p>
|
2018-07-18 21:08:49 +00:00
|
|
|
<p>
|
|
|
|
{{ "{{ count }} authors in this blog: " | _n(singular="One author in this blog: ", count = n_authors) }}
|
|
|
|
{% for author in authors %}
|
2018-07-26 14:36:19 +00:00
|
|
|
<a class="author" href="/@/{{ author.fqn }}">{{ author.name }}</a>{% if not loop.last %},{% endif %}
|
2018-07-18 21:08:49 +00:00
|
|
|
{% endfor %}
|
|
|
|
</p>
|
2018-07-21 14:58:30 +00:00
|
|
|
<p>
|
|
|
|
{{ "{{ count }} articles in this blog" | _n(singular="One article in this blog", count = n_articles) }}
|
|
|
|
</p>
|
2018-09-03 20:06:57 +00:00
|
|
|
|
2018-06-10 18:16:25 +00:00
|
|
|
<section>
|
2018-09-01 20:16:38 +00:00
|
|
|
<h2>
|
|
|
|
{{ "Latest articles" | _ }}
|
2018-10-31 17:17:13 +00:00
|
|
|
<small><a href="/@/{{ blog.fqn }}/atom.xml" title="Atom feed">{{ macros::feather(name="rss") }}</a></small>
|
2018-09-01 20:16:38 +00:00
|
|
|
</h2>
|
2018-07-20 16:42:35 +00:00
|
|
|
{% if posts | length < 1 %}
|
2018-06-17 15:26:15 +00:00
|
|
|
<p>{{ "No posts to see here yet." | _ }}</p>
|
2018-06-10 18:16:25 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if is_author %}
|
2018-07-26 17:00:23 +00:00
|
|
|
<a href="/~/{{ blog.fqn }}/new/" class="button inline-block">{{ "New article" | _ }}</a>
|
2018-06-10 18:16:25 +00:00
|
|
|
{% endif %}
|
|
|
|
<div class="cards">
|
2018-07-20 16:42:35 +00:00
|
|
|
{% for article in posts %}
|
2018-06-10 18:16:25 +00:00
|
|
|
{{ macros::post_card(article=article) }}
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2018-07-25 12:29:34 +00:00
|
|
|
{{ macros::paginate(page=page, total=n_pages) }}
|
2018-06-10 18:16:25 +00:00
|
|
|
</section>
|
2018-10-20 13:03:59 +00:00
|
|
|
{% if is_author %}
|
|
|
|
<h2>{{ "Danger zone" | _ }}</h2>
|
|
|
|
<p>{{ "Be very careful, any action taken here can't be cancelled." | _ }}
|
|
|
|
<form method="post" action="/~/{{ blog.fqn }}/delete">
|
|
|
|
<input type="submit" class="inline-block button destructive" value="{{ "Delete this blog" | _ }}">
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
2018-05-09 19:09:52 +00:00
|
|
|
{% endblock content %}
|