contentdb/app/templates/index.html
2018-11-09 10:58:39 +00:00

39 lines
780 B
HTML

{% extends "base.html" %}
{% block title %}
Welcome
{% endblock %}
{% block container %}
<header>
<div class="container">
<h1>Content DB</h1>
<p>
Minetest's official content repository.
Browse {{ count }} packages,
the majority of which are available under a free
and open source license.
</p>
<form method="get" action="/packages/">
<input type="text" name="q" value="{{ query or ''}}" />
<input type="submit" value="Search" />
</form>
</div>
</header>
<main>
{% from "macros/packagegridtile.html" import render_pkggrid %}
<h2>Popular</h2>
{{ render_pkggrid(popular) }}
<a href="{{ url_for('packages_page') }}" class="button">Show More</a>
<h2 style="margin-top:2em;">Newly Added</h2>
{{ render_pkggrid(new) }}
</main>
{% endblock %}