generated from datadesk/baker-example-page-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
48 lines (45 loc) · 1.35 KB
/
index.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
42
43
44
45
46
47
48
{% extends 'base.html' %}
{% block styles %}
<link rel="stylesheet" href="{% static 'styles/app.scss' %}">
{% endblock styles %}
{% block scripts %}
{% script 'app' %}
{% endblock scripts %}
{% block content %}
<article>
<header class="container">
<h1 class="headline">{{ meta.headline }}</h1>
<img src="{% static 'assets/images/baker.jpg' %}" alt="Baker logo" width=250 />
<div class="attribution">
{% set comma = joiner() %}
<p class="byline">
By {%- for author in meta.byline -%}
{% if not loop.last %}{{ comma() }}{% elif not loop.first %} and{% endif %} <span class="author" itemscope itemtype="http://schema.org/Person"><a itemprop="url" href="{{ author.url }}">{{ author.name }}</a></span>
{%- endfor -%}
</p>
</div>
</header>
<div class="container">
{% for p in copy.body %}
<p class="prose">{{ p.value }}</p>
{% endfor %}
<table class="table">
<caption>Wheat production</caption>
<thead>
<tr>
<th>Year</th>
<th>Yield</th>
</tr>
</thead>
<tbody>
{% for obj in example %}
<tr>
<td>{{ obj.year }}</td>
<td>{{ obj.wheat }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</article>
{% endblock content %}