-
Notifications
You must be signed in to change notification settings - Fork 51
/
base.html
41 lines (40 loc) · 1.25 KB
/
base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{% if title %}{{title}} – {% endif %}Grow</title>
<link rel="shortcut icon" href="/_grow/assets/favicon.png">
<link rel="stylesheet" href="/_grow/ui/css/admin.min.css">
</head>
<body>
<header>
<h1>{{pod.title}}</h1>
<p class="subtitle">Pod: {{pod.root}}</p>
<nav>
<a href="/_grow/routes/concrete/">Routes</a>
<a href="/_grow/routes/abstract/">Abstract Routes</a>
</nav>
</header>
<main>
{% block main %}
{% if partials %}
{% for field in partials %}
{% if not field.partial %}
{% continue %}
{% endif %}
{# Render the partial with the values in {{partial}}. #}
{% set partial_filename = '/partials/' ~ field.partial ~ '/' ~ field.partial ~ '.html' %}
{% with partial = field %}
{% include partial_filename with context %}
{% endwith %}
{% endfor %}
{% endif %}
{% endblock %}
</main>
<footer>
<p>
Visit <a href="https://grow.dev">grow.dev</a> to learn more about Grow
and visit the <a href="https://grow.dev/docs">documentation</a>.
</p>
</footer>
</body>