contentdb/app/templates/index.html

74 lines
2.0 KiB
HTML
Raw Normal View History

2018-03-18 10:43:30 -07:00
{% extends "base.html" %}
{% block title %}
2019-07-29 13:44:39 -07:00
{{ _("Welcome") }}
2018-03-18 10:43:30 -07:00
{% endblock %}
{% block scriptextra %}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"url": "https://content.minetest.net/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://content.minetest.net/packages?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
{% endblock %}
2018-12-22 13:03:01 -08:00
{% block content %}
<!-- <header class="jumbotron">
2018-05-17 16:16:10 -07:00
<div class="container">
2018-12-21 07:58:43 -08:00
<h1 class="display-3">{{ config.USER_APP_NAME }}</h1>
2018-03-21 13:10:11 -07:00
2018-12-21 07:58:43 -08:00
<p class="lead">
2018-05-09 10:58:09 -07:00
Minetest's official content repository.
2018-05-24 12:42:26 -07:00
Browse {{ count }} packages,
2018-11-09 02:58:39 -08:00
the majority of which are available under a free
and open source license.
2018-05-09 10:58:09 -07:00
</p>
2018-05-17 16:16:10 -07:00
</div>
</header>
2018-03-18 10:43:30 -07:00
2018-12-22 13:03:01 -08:00
<main class="container"> -->
2018-05-17 17:32:34 -07:00
{% from "macros/packagegridtile.html" import render_pkggrid %}
2018-12-22 13:03:01 -08:00
<a href="{{ url_for('packages_page', sort='created_at', order='desc') }}" class="btn btn-secondary float-right">
2019-07-29 13:44:39 -07:00
{{ _("See more") }}
2018-12-22 13:03:01 -08:00
</a>
2019-07-29 13:44:39 -07:00
<h2 class="my-3">{{ _("Recently Added") }}</h2>
2018-12-22 13:03:01 -08:00
{{ render_pkggrid(new) }}
2018-12-22 13:41:30 -08:00
<a href="{{ url_for('packages_page', type='mod', sort='score', order='desc') }}" class="btn btn-secondary float-right">
2019-07-29 13:44:39 -07:00
{{ _("See more") }}
2018-12-22 13:03:01 -08:00
</a>
2019-07-29 13:44:39 -07:00
<h2 class="my-3">{{ _("Top Mods") }}</h2>
2018-12-22 13:41:30 -08:00
{{ render_pkggrid(pop_mod) }}
2018-12-22 13:13:56 -08:00
<a href="{{ url_for('packages_page', type='game', sort='score', order='desc') }}" class="btn btn-secondary float-right">
2019-07-29 13:44:39 -07:00
{{ _("See more") }}
2018-12-22 13:13:56 -08:00
</a>
2019-07-29 13:44:39 -07:00
<h2 class="my-3">{{ _("Top Games") }}</h2>
2018-12-22 13:13:56 -08:00
{{ render_pkggrid(pop_gam) }}
<a href="{{ url_for('packages_page', type='txp', sort='score', order='desc') }}" class="btn btn-secondary float-right">
2019-07-29 13:44:39 -07:00
{{ _("See more") }}
2018-12-22 13:03:01 -08:00
</a>
2019-07-29 13:44:39 -07:00
<h2 class="my-3">{{ _("Top Texture Packs") }}</h2>
2018-12-22 13:03:01 -08:00
{{ render_pkggrid(pop_txp) }}
<div class="text-center">
<small>
2019-07-29 13:44:39 -07:00
{{ _("CDB has %(count)d packages, with a total of %(downloads)d downloads.", count=count, downloads=downloads) }}
</small>
</div>
2018-12-22 13:03:01 -08:00
<!-- </main> -->
2018-03-18 10:43:30 -07:00
{% endblock %}