New layout

This commit is contained in:
Felipe M 2020-01-12 20:26:01 +01:00
parent 440e7a3994
commit f6a070f084
Signed by: fmartingr
GPG key ID: 716BC147715E716F
45 changed files with 661 additions and 758 deletions

View file

@ -1,16 +1,19 @@
{% extends "_base.html" %}
{% from "macros/blog.html" import render_blog_post %}
{% block page_title %}{{ super() }} | {{ this.title }}{% endblock %}
{% block page_title %}{{ this.title }} | {{ super() }}{% endblock %}
{% block main_content %}
<div class="grid center">
<div class="col-1-3">
<img src="{{ 'static/images/avatar.jpg'|url }}">
</div>
<div class="col-2-3">
{{ this.body }}
</div>
</div>
<h2>Latest blog posts</h2>
{% for post in site.get('/blog').pagination.for_page(1).pagination.items %}
<article class="blog-post center">
<p class="text-right float-right"><a href="{{ post|url }}">Read &raquo;</a></p>
<h3 class="title"><a href="{{ post|url }}">{{ post.title }}</a></h3>
<div class="info">{{ post.pub_date }}</div>
</article>
<hr class="light">
{% endfor %}
{{ this.body }}
{% endblock %}
{% block body_class %}home{% endblock %}