-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.twig
71 lines (55 loc) · 2.88 KB
/
index.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{% extends 'partials/_master.twig' %}
{% block bodyClass %}archive-view{% endblock %}
{% block header %}
<h1 class="site-title">
<a href="{{ url('homepage') }}" rel="home">{{ config.get('general/sitename') }}</a>
</h1>
{% endblock header %}
{% block main %}
<main id="main" class="site-main" role="main">
{# Add content template #}
{% setcontent entries = 'entries/latest/12' allowpaging %}
{{ pager('', 3, 'partials/prev_sub_pager.twig' ) }}
{% for entry in entries %}
<article id="post-{{ entry.id }}" class="post">
{% if entry.image is not empty %}
<figure class="featured-image">
<a href="{{ entry.link }}" rel="bookmark">
<img src="{{ thumbnail( entry.image, 433, 248, 'c') }}" alt="{{ entry.image.title|default('') }}">
</a>
</figure><!-- .featured-image full-bleed -->
{% endif %}
<header class="entry-header">
{% if entry.taxonomy.categories is defined %}
<div class="cat-links">
{% for entryCategoryLink, entryCategory in entry.taxonomy.categories %}
<a href="{{ entryCategoryLink }}" rel="category tag">{{ entryCategory }}</a>
{% if not loop.last %}, {% endif %}
{% endfor %}
</div>
{% endif %}
<h2 class="entry-title">
<a href="{{ entry.link }}" rel="bookmark">'{{ entry.title }}'</a>
</h2>
</header><!-- .entry-header -->
<div class="entry-meta">
<span class="byline"> Written by
<span class="author vcard">
<a class="url fn n" href="{{ entry.link }}">{{ app['twig.runtime.bolt_user'].getUser( entry.ownerid ).displayname }}</a>
</span>
</span>
<span class="posted-on">Published
<a href="{{ entry.link }}" rel="bookmark">
<time class="entry-date published" datetime="2017-08-10T09:58:38+00:00">{{ entry.datepublish|date('F j, Y') }}</time>
<time class="updated" datetime="2017-08-10T09:59:07+00:00">{{ entry.datechanged|date('F j, Y') }}</time>
</a>
</span>
</div><!-- .entry-meta -->
<div class="entry-content">
<p>{{ entry.teaser|excerpt('250') }}</p>
</div><!-- .entry-content -->
</article><!-- #post-## -->
{% endfor %}
{{ pager('', 3, 'partials/next_sub_pager.twig') }}
</main><!-- #main -->
{% endblock main %}