Plume/templates/blogs/details.html.tera

41 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-05-09 21:09:52 +02:00
{% extends "base" %}
{% import "macros" as macros %}
2018-05-09 21:09:52 +02:00
{% block title %}
{{ blog.title }}
{% endblock title %}
{% block content %}
2018-07-19 12:00:34 +02:00
<h1>{{ blog.title }} <small>~{{ blog.actor_id }}</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 %}
{% if author.display_name %}
{% set name = author.display_name %}
{% else %}
{% set name = author.username %}
{% endif %}
<a class="author" href="/@/{{ author.fqn }}">{{ 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>
2018-06-10 20:16:25 +02:00
<section>
2018-06-17 17:26:15 +02:00
<h2>{{ "Latest articles" | _ }}</h2>
2018-06-10 20:16:25 +02:00
{% if recents | 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-06-17 17:26:15 +02:00
<a href="new" class="button inline-block">{{ "New article" | _ }}</a>
2018-06-10 20:16:25 +02:00
{% endif %}
<div class="cards">
{% for article in recents %}
{{ macros::post_card(article=article) }}
{% endfor %}
</div>
</section>
2018-05-09 21:09:52 +02:00
{% endblock content %}