## -*- coding: utf-8 -*-
<%namespace name="helper" file="post_helper.tmpl"/>
<%namespace name="comments" file="comments_helper.tmpl"/>
<%inherit file="base.tmpl"/>
<%block name="extra_head">
${helper.twitter_card_information(post)}
% if post.meta('keywords'):
    <meta name="keywords" content="${post.meta('keywords')|h}"/>
% endif
</%block>
<%block name="content">
    <div class="post">
    ${helper.html_title()}
        <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>
            % if not post.meta('password'):
               [<a href="${post.source_link()}" id="sourcelink">${messages("Source")}</a>]
            % endif
        </span>
        <br>
            %if post.tags:
                <span class="tags">${messages("Tags")}:&nbsp;
                %for tag in post.tags:
                    <a class="tag" href="${_link('tag', tag)}"><span>${tag}</span></a>
                %endfor
                </span>
                <br>
            %endif
        <span class="authordate">
            ${helper.html_translations(post)}
        </span>
        </div>
    ${post.text()}
    ${helper.html_pager(post)}
    % if not post.meta('nocomments'):
        ${comments.comment_form(post.permalink(absolute=True), post.title(), post.base_path)}
    % endif
    ${helper.mathjax_script(post)}
    </div>
</%block>
