Echo Writes Code

list.tera.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
{% extends "_base.tera.html" %}

{% block title %}{{ list.name }}{% endblock %}

{% block feed %}
<link rel="alternate" type="application/atom+xml" href="{{ list.link | safe }}/atom.xml">
{% endblock %}

{% block content %}
<article>
	<h1>{{ list.name }}</h1>
	<a href="/list/{{ list.slug }}/atom.xml">Atom feed</a>
	<ul class="tiles">
	{% for post in list.posts %}
		<li>
			<a href="{{ post.link }}">
				<h3>{{ post.name }}</h3>
				<p>{{ post.summary | safe }}</p>
			</a>
		</li>
	{% endfor %}
	</ul>
</article>
{% endblock %}

{% block scripts %}
<script src="/static/scripts/tile-tilt.js"></script>
{% endblock %}