{% extends "layout.html" %}
{% from "macros/blog.html" import render_blog_post %}
{% from "macros/pagination.html" import render_pagination %}
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
  {% for child in this.pagination.items %}
    
        {% for image in child.attachments.images %}
        <img src="{{ image.thumbnail(124)|url }}" alt="{{child.title}}" style="border-width: 2px; border-color: black; float: left; margin-right: 10px; margin-bottom: 10px; margin-top: 10px;">
        <p style="padding-top: 5px;"><h3><a href="{{ child|url }}">{{ child.title }}</a></h3></p>
        {% endfor %}
        <p>{{ child.body|striptags|truncate(140, end="...") }}</p>

  {% endfor %}

  {{ render_pagination(this.pagination) }}
{% endblock %}
