mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-29 06:51:01 +00:00
41 lines
1.4 KiB
Text
41 lines
1.4 KiB
Text
{% extends "base" %}
|
|
{% import "macros" as macros %}
|
|
|
|
{% block title %}
|
|
{{ blog.title }}
|
|
{% endblock title %}
|
|
|
|
{% block content %}
|
|
<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>
|
|
|
|
<section>
|
|
<h2>{{ "Latest articles" | _ }}</h2>
|
|
{% if posts | length < 1 %}
|
|
<p>{{ "No posts to see here yet." | _ }}</p>
|
|
{% endif %}
|
|
{% if is_author %}
|
|
<a href="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>
|
|
{% endblock content %}
|