From f60e9ccd5b046101903a79bf6afa0cf87fdd956c Mon Sep 17 00:00:00 2001 From: joak Date: Mon, 17 Aug 2020 11:55:24 +0200 Subject: init --- templates/works.html | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 templates/works.html (limited to 'templates/works.html') diff --git a/templates/works.html b/templates/works.html new file mode 100644 index 0000000..bb22aa6 --- /dev/null +++ b/templates/works.html @@ -0,0 +1,47 @@ +{% extends "layout.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block body %} + + {% set works = site.get('/works', this.alt) %} +
+ + + + + + + + + + {% for work in works.children %} + + {% set gif = work.attachments.images.get(work.thumbnail) %} + + + + + + {% endfor %} +
🗒🔧🔨🔬🖥🔊🕛?
{{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) %} + + {{ this.caption }} + {% endif %} + {% if i._flowblock == 'galleryvideo' %} + 🎥 + {% endif %} + {% endfor %} + {% endif %} + {% if item._flowblock == 'video' %} + 🎥 + {% endif %} + {% endfor %} + {{ work.year_start|dateformat('Y-MM-dd') }} - {% if work.ongoing == True %}{{ bag('translation', this.alt, 'ongoing') }}{% else %} {{ work.year_end|dateformat('Y-MM-dd') }} {% endif %}{% if work.format %}{{work.format}}{% endif %}
+
+{% endblock %} -- cgit v1.2.3