summaryrefslogtreecommitdiff
path: root/themes/ccc/templates/post-list-front-erfas.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'themes/ccc/templates/post-list-front-erfas.tmpl')
-rw-r--r--themes/ccc/templates/post-list-front-erfas.tmpl28
1 files changed, 28 insertions, 0 deletions
diff --git a/themes/ccc/templates/post-list-front-erfas.tmpl b/themes/ccc/templates/post-list-front-erfas.tmpl
new file mode 100644
index 00000000..56690ff0
--- /dev/null
+++ b/themes/ccc/templates/post-list-front-erfas.tmpl
@@ -0,0 +1,28 @@
1## -*- coding: utf-8 -*-
2<%block name="content">
3<!-- Begin post-list ${post_list_id} -->
4
5<div id="${post_list_id}" class="post-list bg-light p-8 my-3 col-12 border border-light rounded shadow-sm">
6 <h1 class="section-heading">Aus den Erfas</h1>
7 % for post in posts:
8 <div class="post-list-item row">
9 <div class="col-12 p-0">
10 <a class="stretched-link" href="${post.permalink()}">
11 %if post.meta('previewimage'):
12 <img class="col-12 col-md-4 mb-3 img-responsive float-left post-list-preview" alt="preview" src="${post.meta('previewimage')}" style="object-position: ${post.meta('previewimage-position') or '50% 50%'}"/>
13 %endif
14 <div class="post-list-headline col-12">
15 <div class="post-title">${post.title(lang)}</div>
16 <div class="post-date">${post.formatted_date(date_format)}</div>
17 </div>
18 </a>
19 <div class="post-body col-12" id="post-body-${loop.index}">
20 ${ post.text( teaser_only = True, show_read_more_link = False, strip_html = True) }
21 </div>
22 </div>
23 </div>
24 % endfor
25 <div class="more-erfa-content"><a href="${_link('category', 'cpu', lang)}">Mehr aus den Erfas</a></div>
26</div>
27<!-- End post-list ${post_list_id} -->
28</%block>