45 řádky
1.5 KiB
HTML
45 řádky
1.5 KiB
HTML
|
{% extends "base.html" %}
|
||
|
|
||
|
{% block title %}{{ tcx.cfg.site.name }}{% endblock %}
|
||
|
|
||
|
{% block content %}
|
||
|
<div class="container">
|
||
|
<div class="center">
|
||
|
<h1 class="title">{{ tcx.cfg.site.name }}</h1>
|
||
|
<p class="description">{{ tcx.cfg.site.description }}</p>
|
||
|
</div>
|
||
|
{% if !posts.is_empty() %}
|
||
|
<div class="infobox">
|
||
|
<div class="infobox-head">
|
||
|
Nejnovější příspěvky
|
||
|
</div>
|
||
|
<div class="infobox-content">
|
||
|
<ul class="recent-posts">
|
||
|
{% for post in posts %}
|
||
|
<li><b>/{{ post.board }}/</b>: <a href="{{ post.post_url() }}">{{ post.content_nomarkup|inline_post }}</a></li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
{% if !files.is_empty() %}
|
||
|
<div class="infobox">
|
||
|
<div class="infobox-head">
|
||
|
Nejnovější soubory
|
||
|
</div>
|
||
|
<div class="infobox-content">
|
||
|
<div class="post-files multi-files">
|
||
|
{% for post in files %}
|
||
|
<div class="post-file">
|
||
|
<a href="{{ post.post_url() }}">
|
||
|
<img class="thumb" src="{{ post.files.0[0].thumb_url() }}">
|
||
|
</a>
|
||
|
</div>
|
||
|
{% endfor %}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
{% endblock %}
|