From f60e9ccd5b046101903a79bf6afa0cf87fdd956c Mon Sep 17 00:00:00 2001 From: joak Date: Mon, 17 Aug 2020 11:55:24 +0200 Subject: init --- templates/page.html | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 templates/page.html (limited to 'templates/page.html') diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..5d9297d --- /dev/null +++ b/templates/page.html @@ -0,0 +1,43 @@ +{% 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}} + +

{{work.title}}

+ + {% 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) %} + + + {{ this.caption }} + + {% endif %} + {% endfor %} + {% endif %} + {% endfor %} +
+ {% endif %} + {% endfor %} +
+{% else %} +
+
+ {{this.body}} +
+
+{% endif %} + +{% endblock %} -- cgit v1.2.3