contentdb/app/templates/index.html

39 lines
772 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,
majority of which 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 %}