First commit

This commit is contained in:
Antonio de la Rosa 2021-12-14 23:27:04 +01:00
commit 664842d309
57 changed files with 49647 additions and 0 deletions

26
templates/blog.phtml Normal file
View file

@ -0,0 +1,26 @@
<%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>