{% extends "layout.html" %}
{% block title %}{{ this.title }}{% endblock %}
{% block body %}
{% if this._path == '/' %}
{{ this.body }}
{% set works = site.get('/works', this.alt) %}
{% for work in works.children %}
{% if work.selected %}
{{work.content.blocks._flowblock}}
{% for item in work.content.blocks %}
{% if item._flowblock == 'gallery' %}
{% for i in item.gallery.blocks %}
{% if i._flowblock == 'picture' %}
{% set img = work.attachments.images.get(i.url) %}
{% set r = (range(200, 300) | random) %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}