diff options
author | Charlie Root <root@web.ccc.local> | 2020-05-26 22:45:15 +0000 |
---|---|---|
committer | Charlie Root <root@web.ccc.local> | 2020-05-26 22:45:15 +0000 |
commit | daf20dd652f9294273c1110f60ff4da6d99f67c5 (patch) | |
tree | 13bf0ee020cd847fa8c1a452c680948e3d99239d /themes/ccc/templates/front-featured-nav-small.tmpl | |
parent | ba279352885269d921e71ff7f5314b5b21dc58b7 (diff) |
Commit preview bundle
Diffstat (limited to 'themes/ccc/templates/front-featured-nav-small.tmpl')
-rw-r--r-- | themes/ccc/templates/front-featured-nav-small.tmpl | 15 |
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> | ||