diff options
Diffstat (limited to 'themes/ccc/templates/post.tmpl')
-rw-r--r-- | themes/ccc/templates/post.tmpl | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/themes/ccc/templates/post.tmpl b/themes/ccc/templates/post.tmpl new file mode 100644 index 00000000..7abffb9d --- /dev/null +++ b/themes/ccc/templates/post.tmpl | |||
@@ -0,0 +1,58 @@ | |||
1 | ## -*- coding: utf-8 -*- | ||
2 | <%namespace name="helper" file="post_helper.tmpl"/> | ||
3 | <%namespace name="pheader" file="post_header.tmpl"/> | ||
4 | <%namespace name="comments" file="comments_helper.tmpl"/> | ||
5 | <%namespace name="math" file="math_helper.tmpl"/> | ||
6 | <%namespace name="statnav" file="static_navigation.tmpl"/> | ||
7 | <%inherit file="base.tmpl"/> | ||
8 | |||
9 | <%block name="extra_head"> | ||
10 | ${parent.extra_head()} | ||
11 | % if post.meta('keywords'): | ||
12 | <meta name="keywords" content="${smartjoin(', ', post.meta('keywords'))|h}"> | ||
13 | % endif | ||
14 | <meta name="author" content="${post.author()|h}"> | ||
15 | %if post.prev_post: | ||
16 | <link rel="prev" href="${post.prev_post.permalink()}" title="${post.prev_post.title()|h}" type="text/html"> | ||
17 | %endif | ||
18 | %if post.next_post: | ||
19 | <link rel="next" href="${post.next_post.permalink()}" title="${post.next_post.title()|h}" type="text/html"> | ||
20 | %endif | ||
21 | % if post.is_draft: | ||
22 | <meta name="robots" content="noindex"> | ||
23 | % endif | ||
24 | ${helper.open_graph_metadata(post)} | ||
25 | ${helper.twitter_card_information(post)} | ||
26 | ${helper.meta_translations(post)} | ||
27 | ${math.math_styles_ifpost(post)} | ||
28 | </%block> | ||
29 | |||
30 | <%block name="content"> | ||
31 | <div class="row frontend-content mt-3"> | ||
32 | <div class="col-lg-9 blog-main"> | ||
33 | % if post.meta('previewimage'): | ||
34 | <img class="col-12 p-0 mb-3 post-preview img-responsive" src="${post.meta('previewimage')}" alt="preview-img" style="object-fit: cover; object-position: ${post.meta('previewimage-position') or '50% 50%' }" /> | ||
35 | % endif | ||
36 | <article class="post-${post.meta('type')} h-entry hentry postpage" itemscope="itemscope" itemtype="http://schema.org/Article"> | ||
37 | ${pheader.html_post_header()} | ||
38 | <div class="e-content entry-content" itemprop="articleBody text"> | ||
39 | ${post.text()} | ||
40 | </div> | ||
41 | ${math.math_scripts_ifpost(post)} | ||
42 | </article> | ||
43 | </div> | ||
44 | <aside class="col-12 col-lg-3 sidebar"> | ||
45 | ${statnav.static_navigation()} | ||
46 | %if post.tags: | ||
47 | <ul itemprop="keywords" class="nav flex-column bg-light mt-4 shadow-sm"> | ||
48 | <h4 class="pull-left">Tagged as:</h4> | ||
49 | %for tag in post.tags: | ||
50 | % if tag not in hidden_tags: | ||
51 | <li class="nav-item"><a class="nav-link" href="${_link('tag', tag)}" rel="tag">${tag|h}</a></li> | ||
52 | % endif | ||
53 | %endfor | ||
54 | </ul> | ||
55 | %endif | ||
56 | </aside> | ||
57 | </div> | ||
58 | </%block> | ||