Files
ad/molodetz/templates/home.html
T

41 lines
1.6 KiB
HTML

<!-- retoor <retoor@molodetz.nl> -->
{% extends "base.html" %}
{% block content %}
{% set viewer = current_user(request) %}
<section class="hero">
<span class="label">Een blogrol</span>
<h1>Molodetz</h1>
<div class="intro" data-intro>{{ intro_html | safe }}</div>
{% if viewer and is_admin(viewer) %}<p class="intro-edit"><a href="/admin/settings#s-site_intro">Intro bewerken</a></p>{% endif %}
</section>
<div class="section-head">
<span class="label">Laatst op de rol</span>
<a href="/rol">Alles</a>
</div>
{% for post in posts %}
{% set _card = post %}
{% include "_post_card.html" %}
{% else %}
<p class="empty">Nog niets gepubliceerd.</p>
{% endfor %}
{% if featured_flyer %}
<section class="featured">
<div class="section-head"><span class="label">Flyer</span><a href="/flyers">{{ flyer_count }} flyers</a></div>
<figure>
<a href="{{ static_url(featured_flyer.source_path) }}" data-lightbox data-caption="{{ featured_flyer.caption }}">
<img src="{{ featured_flyer.thumb_url or static_url(featured_flyer.source_path) }}" alt="{{ featured_flyer.caption }}" width="{{ featured_flyer.width }}" height="{{ featured_flyer.height }}">
</a>
<figcaption>{{ featured_flyer.caption }}</figcaption>
</figure>
</section>
{% endif %}
<section class="closing">
<span class="label">Binnen</span>
<p>De rol is open voor mensen, niet voor een publiek. Wie mee wil schrijven, zegt het.</p>
<div class="actions"><a class="button" href="/binnen">Ik schrijf mee</a><a class="button ghost" href="/memes">{{ meme_count }} memes</a></div>
</section>
{% endblock %}