summaryrefslogtreecommitdiff
path: root/themes/ccc/templates/front-featured-small.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'themes/ccc/templates/front-featured-small.tmpl')
-rw-r--r--themes/ccc/templates/front-featured-small.tmpl19
1 files changed, 19 insertions, 0 deletions
diff --git a/themes/ccc/templates/front-featured-small.tmpl b/themes/ccc/templates/front-featured-small.tmpl
new file mode 100644
index 00000000..e75b9146
--- /dev/null
+++ b/themes/ccc/templates/front-featured-small.tmpl
@@ -0,0 +1,19 @@
1## -*- coding: utf-8 -*-
2<%block name="content">
3
4<div class="row my-3 bg-light text-white shadow-sm d-lg-none">
5
6 % for post in posts:
7 <div class="col-12 col-md-4 col-lg-3 my-3">
8 <div class="card">
9 <img class="card-img-top" style="width: 100%; height: 120px; object-fit: cover;" src=${post.meta('previewimage')}"/>
10 <div class="card-img-overlay d-flex flex-column justify-content-end">
11 <h3 style="background: rgba(0, 0, 0, 0.75); display: inline; padding: 0.1em; margin: 0;" class="card-title">${post.title(lang)}</h3>
12 </div>
13 <a href="${post.permalink()}" class="stretched-link"></a>
14 </div>
15 </div>
16% endfor
17
18</div>
19</%block>