forked from praswicaksono/html5up-striped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlisting.twig
45 lines (33 loc) · 1.25 KB
/
listing.twig
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
{% include '_header.twig' %}
<!--
Note: Set the body element's class to "left-sidebar" to position the sidebar on the left.
Set it to "right-sidebar" to, you guessed it, position it on the right.
-->
<body class="left-sidebar">
<!-- Wrapper -->
<div id="wrapper">
<!-- Content -->
<div id="content">
<div class="inner">
<!-- Post -->
{% for record in records %}
<article class="box post post-excerpt">
<header>
<h2><a href="{{ record.link }}">{{ record.title }}</a></h2>
</header>
<div class="info">
<span class="date"><span class="month">{{ record.datecreated|date('M')}}</span> <span class="day">{{ record.datecreated|date('d')}}</span><span class="year">, {{ record.datecreated|date('Y')}}</span></span>
</div>
{% if record.image!="" %}
<a href="{{ record.link }}" class="image featured"><img src="{{ image(record.image) }}" alt="" /></a>
{% endif %}
<p>{{ record.teaser }}</p>
</article>
{% endfor %}
<!-- Pagination -->
{{ pager('', 3, '_mypager.twig') }}
</div>
</div>
{% include '_sidebar.twig' %}
</div>
</body>