Files
ad/molodetz/templates/home.html
T

41 lines
1.5 KiB
HTML

<!-- retoor <retoor@molodetz.nl> -->
{% extends "base.html" %}
{% block content %}
{% set viewer = current_user(request) %}
<section class="hero">
<span class="label">A blog roll</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">Edit intro</a></p>{% endif %}
</section>
<div class="section-head">
<span class="label">Latest on the roll</span>
<a href="/roll">All</a>
</div>
{% for post in posts %}
{% set _card = post %}
{% include "_post_card.html" %}
{% else %}
<p class="empty">Nothing published yet.</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">Join</span>
<p>The roll is open to people, not to an audience. Want to write along? Say so.</p>
<div class="actions"><a class="button" href="/join">I'm in</a><a class="button ghost" href="/memes">{{ meme_count }} memes</a></div>
</section>
{% endblock %}