mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
23 lines
808 B
HTML
23 lines
808 B
HTML
{% set page_name = "homepage" %}
|
|
{% extends "layout/basic.html" %}
|
|
{% import "components/contest.html" as contest with context %}
|
|
{% import "components/problem.html" as problem with context %}
|
|
{% import "components/user.html" as user with context %}
|
|
{% block content %}
|
|
<div class="row">
|
|
{% for column in contents %}
|
|
<div class="large-{{ column.width }} columns">
|
|
{% for s in column.sections %}
|
|
{% if templateExists("partials/homepage/" + s[0] + ".html") %}
|
|
{% set payload = s[1] %}
|
|
{% include "partials/homepage/" + s[0] + ".html" %}
|
|
{% else %}
|
|
{% set payload = _("Template {0} not found.").format(s[0]) %}
|
|
{% include "partials/homepage/error.html" %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endblock %}
|