<%inherit file="home.phtml"/>
<%block name="content">
<div align="center" style="padding-top:40px;min-height:90vh;">
<img src="${make_media_url('images/logo.png', 'cuchulublog')}" />
<h1>${lang('cuchulublog', 'posts', 'Posts')}</h1>
<section>
% for post in posts:
<h2 class="title_post">${post['title']}</h2>
<article class="tpl_post">
    <header>
      <h1 class="blog_post_name"></h1>
      <p>${lang('cuchulublog', 'published', 'Published')}: <time pubdate="pubdate" class="date_post">${post['date']}</time></p>
    </header>
    <div class="content_post">
    ${post['text']|n}
    </div>
    <footer>
      <p><a href="${url_for('.cuchulublog_blog', date=post['date'], slugify=post['slugify'], post_id=post['id'])}" class="url_post">${lang('cuchulublog', 'read_more', 'Read more')}</a></p>
    </footer>
</article>
% endfor
</section>
</div>
</%block>
<%block name="js_footer">
</%block>
