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