Website
This commit is contained in:
31
website/themes/monospace/templates/index.tmpl
Normal file
31
website/themes/monospace/templates/index.tmpl
Normal file
@@ -0,0 +1,31 @@
|
||||
## -*- coding: utf-8 -*-
|
||||
<%namespace name="helper" file="index_helper.tmpl"/>
|
||||
<%namespace name="comments" file="comments_helper.tmpl"/>
|
||||
<%inherit file="base.tmpl"/>
|
||||
<%block name="content">
|
||||
% for post in posts:
|
||||
<div class="postbox">
|
||||
<h1><a href="${post.permalink()}">${post.title()}</a></h1>
|
||||
<div class="meta" style="background-color: rgb(234, 234, 234); ">
|
||||
<span class="authordate">
|
||||
${messages("Posted")}: <time class="published" datetime="${post.date.isoformat()}">${post.formatted_date(date_format)}</time>
|
||||
</span>
|
||||
<br>
|
||||
<span class="tags">Tags:
|
||||
%if post.tags:
|
||||
%for tag in post.tags:
|
||||
<a class="tag" href="${_link('tag', tag)}"><span>${tag}</span></a>
|
||||
%endfor
|
||||
%endif
|
||||
</span>
|
||||
</div>
|
||||
${post.text(teaser_only=index_teasers)}
|
||||
% if not post.meta('nocomments'):
|
||||
${comments.comment_link(post.permalink(), post.base_path)}
|
||||
% endif
|
||||
</div>
|
||||
% endfor
|
||||
${helper.html_pager()}
|
||||
${comments.comment_link_script()}
|
||||
${helper.mathjax_script(posts)}
|
||||
</%block>
|
Reference in New Issue
Block a user