aboutsummaryrefslogtreecommitdiffstats
path: root/nikola/data/themes/base/templates/index.tmpl
blob: 1a280b035b746b915de0f66ac0f9e6619c3a1b0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
## -*- 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:
        <article class="postbox h-entry post-${post.meta('type')}">
        <h1 class="p-name"><a href="${post.permalink()}" class="u-url">${post.title()}</a>
        <small>&nbsp;&nbsp;
             ${messages("Posted:")} <time class="published dt-published" datetime="${post.date.isoformat()}">${post.formatted_date(date_format)}</time>
        </small></h1>
        <hr>
        %if index_teasers:
        <div class="p-summary">
        ${post.text(teaser_only=True)}
        %else:
        <div class="e-content">
        ${post.text(teaser_only=False)}
        %endif
        </div>
        % if not post.meta('nocomments'):
            ${comments.comment_link(post.permalink(), post._base_path)}
        % endif
        </article>
    % endfor
    ${helper.html_pager()}
    ${comments.comment_link_script()}
	${helper.mathjax_script(posts)}
</%block>