51 lines
1.8 KiB
Plaintext
51 lines
1.8 KiB
Plaintext
{% extends "base" %}
|
|
{% import "macros" as macros %}
|
|
|
|
{% block title %}
|
|
{{ blog.title }}
|
|
{% endblock title %}
|
|
|
|
{% block header %}
|
|
<a href="/~/{{ blog.fqn }}">{{ blog.title }}</a>
|
|
{% endblock header %}
|
|
|
|
{% block content %}
|
|
<h1>{{ blog.title }} <small>~{{ blog.fqn }}</small></h1>
|
|
<p>{{ blog.summary }}</p>
|
|
<p>
|
|
{{ "{{ count }} authors in this blog: " | _n(singular="One author in this blog: ", count = n_authors) }}
|
|
{% for author in authors %}
|
|
<a class="author" href="/@/{{ author.fqn }}">{{ author.name }}</a>{% if not loop.last %},{% endif %}
|
|
{% endfor %}
|
|
</p>
|
|
<p>
|
|
{{ "{{ count }} articles in this blog" | _n(singular="One article in this blog", count = n_articles) }}
|
|
</p>
|
|
|
|
<section>
|
|
<h2>
|
|
{{ "Latest articles" | _ }}
|
|
<small><a href="/@/{{ blog.fqn }}/atom.xml" title="Atom feed">{{ macros::feather(name="rss") }}</a></small>
|
|
</h2>
|
|
{% if posts | length < 1 %}
|
|
<p>{{ "No posts to see here yet." | _ }}</p>
|
|
{% endif %}
|
|
{% if is_author %}
|
|
<a href="/~/{{ blog.fqn }}/new/" class="button inline-block">{{ "New article" | _ }}</a>
|
|
{% endif %}
|
|
<div class="cards">
|
|
{% for article in posts %}
|
|
{{ macros::post_card(article=article) }}
|
|
{% endfor %}
|
|
</div>
|
|
{{ macros::paginate(page=page, total=n_pages) }}
|
|
</section>
|
|
{% 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 %}
|
|
{% endblock content %}
|