From f60e9ccd5b046101903a79bf6afa0cf87fdd956c Mon Sep 17 00:00:00 2001 From: joak Date: Mon, 17 Aug 2020 11:55:24 +0200 Subject: init --- templates/blocks/collaborator.html | 1 + templates/blocks/content.html | 3 ++ templates/blocks/gallery.html | 5 ++ templates/blocks/galleryvideo.html | 8 ++++ templates/blocks/html.html | 3 ++ templates/blocks/picture.html | 2 + templates/blocks/video.html | 9 ++++ templates/curating.html | 21 +++++++++ templates/curatings.html | 5 ++ templates/exhibition.html | 21 +++++++++ templates/exhibitions.html | 5 ++ templates/info.html | 96 ++++++++++++++++++++++++++++++++++++++ templates/layout.html | 66 ++++++++++++++++++++++++++ templates/lecture.html | 20 ++++++++ templates/lectures.html | 5 ++ templates/macros/pagination.html | 15 ++++++ templates/page.html | 43 +++++++++++++++++ templates/performance.html | 21 +++++++++ templates/performances.html | 5 ++ templates/work.html | 33 +++++++++++++ templates/works.html | 47 +++++++++++++++++++ 21 files changed, 434 insertions(+) create mode 100644 templates/blocks/collaborator.html create mode 100644 templates/blocks/content.html create mode 100644 templates/blocks/gallery.html create mode 100644 templates/blocks/galleryvideo.html create mode 100644 templates/blocks/html.html create mode 100644 templates/blocks/picture.html create mode 100644 templates/blocks/video.html create mode 100644 templates/curating.html create mode 100644 templates/curatings.html create mode 100644 templates/exhibition.html create mode 100644 templates/exhibitions.html create mode 100644 templates/info.html create mode 100644 templates/layout.html create mode 100644 templates/lecture.html create mode 100644 templates/lectures.html create mode 100644 templates/macros/pagination.html create mode 100644 templates/page.html create mode 100644 templates/performance.html create mode 100644 templates/performances.html create mode 100644 templates/work.html create mode 100644 templates/works.html (limited to 'templates') diff --git a/templates/blocks/collaborator.html b/templates/blocks/collaborator.html new file mode 100644 index 0000000..90f91ad --- /dev/null +++ b/templates/blocks/collaborator.html @@ -0,0 +1 @@ +{{ this.collaborator }} diff --git a/templates/blocks/content.html b/templates/blocks/content.html new file mode 100644 index 0000000..52b67d7 --- /dev/null +++ b/templates/blocks/content.html @@ -0,0 +1,3 @@ +
+ {{this.content}} +
diff --git a/templates/blocks/gallery.html b/templates/blocks/gallery.html new file mode 100644 index 0000000..d34bb5a --- /dev/null +++ b/templates/blocks/gallery.html @@ -0,0 +1,5 @@ + diff --git a/templates/blocks/galleryvideo.html b/templates/blocks/galleryvideo.html new file mode 100644 index 0000000..661337a --- /dev/null +++ b/templates/blocks/galleryvideo.html @@ -0,0 +1,8 @@ + + diff --git a/templates/blocks/html.html b/templates/blocks/html.html new file mode 100644 index 0000000..40cee00 --- /dev/null +++ b/templates/blocks/html.html @@ -0,0 +1,3 @@ +
+ {{this.html}} +
diff --git a/templates/blocks/picture.html b/templates/blocks/picture.html new file mode 100644 index 0000000..a75eb3e --- /dev/null +++ b/templates/blocks/picture.html @@ -0,0 +1,2 @@ +{% set img = record.attachments.images.get(this.url) %} +{{ this.caption }} diff --git a/templates/blocks/video.html b/templates/blocks/video.html new file mode 100644 index 0000000..b906e9d --- /dev/null +++ b/templates/blocks/video.html @@ -0,0 +1,9 @@ +
+ {%if this.caption %}

{{ this.caption }}

{% endif %} +
+ +
+
diff --git a/templates/curating.html b/templates/curating.html new file mode 100644 index 0000000..bdd6536 --- /dev/null +++ b/templates/curating.html @@ -0,0 +1,21 @@ +{% extends "layout.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block body %} +
+
+
+

{{ bag('translation', this.alt, 'curating') }}

+ +

{{ bag('translation', this.alt, 'title') }}: {{ this.title }}

+

Start: {{ this.date_start|dateformat('Y-MM-dd') }}

+

{{ bag('translation', this.alt, 'end') }}: {{ this.date_end|dateformat('Y-MM-dd') }}

+

{{ bag('translation', this.alt, 'venue') }}: {{ this.venue }}

+

{{ bag('translation', this.alt, 'place') }}: {{ this.place }}

+

{{ bag('translation', this.alt, 'country') }}: {{ this.country }}

+

{{ bag('translation', this.alt, 'website') }}: {{this.url}}

+

{{ bag('translation', this.alt, 'comment') }}: {{ this.comment }}

+ {{ this.info }} +
+
+
+{% endblock %} diff --git a/templates/curatings.html b/templates/curatings.html new file mode 100644 index 0000000..1ea76a3 --- /dev/null +++ b/templates/curatings.html @@ -0,0 +1,5 @@ +{% extends "layout.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block body %} +

{{ this.title }}

+{% endblock %} diff --git a/templates/exhibition.html b/templates/exhibition.html new file mode 100644 index 0000000..bec0642 --- /dev/null +++ b/templates/exhibition.html @@ -0,0 +1,21 @@ +{% extends "layout.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block body %} +
+
+
+

{{ bag('translation', this.alt, 'exhibition') }}

+ +

{{ bag('translation', this.alt, 'title') }}: {{ this.title }}

+

Start: {{ this.date_start|dateformat('Y-MM-dd') }}

+

{{ bag('translation', this.alt, 'end') }}: {{ this.date_end|dateformat('Y-MM-dd') }}

+

{{ bag('translation', this.alt, 'venue') }}: {{ this.venue }}

+

{{ bag('translation', this.alt, 'place') }}: {{ this.place }}

+

{{ bag('translation', this.alt, 'country') }}: {{ this.country }}

+

{{ bag('translation', this.alt, 'website') }}: {{this.url}}

+

{{ bag('translation', this.alt, 'comment') }}: {{ this.comment }}

+ {{ this.info }} +
+
+
+{% endblock %} diff --git a/templates/exhibitions.html b/templates/exhibitions.html new file mode 100644 index 0000000..1ea76a3 --- /dev/null +++ b/templates/exhibitions.html @@ -0,0 +1,5 @@ +{% extends "layout.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block body %} +

{{ this.title }}

+{% endblock %} diff --git a/templates/info.html b/templates/info.html new file mode 100644 index 0000000..fc37ab5 --- /dev/null +++ b/templates/info.html @@ -0,0 +1,96 @@ +{% extends "layout.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block body %} +
+
+

{{ bag('translation', this.alt, 'info') }}

+ {{ this.body }} +
+
+

{{ bag('translation', this.alt, 'exhibitions') }}

+ + + + + + + + {% set exhibitions = site.query('/exhibitions').all() %} + {% for exhibition in exhibitions %} + + {% set gif = exhibition.attachments.images.get(exhibition.thumbnail) %} + + + + + + {% endfor %} +
{% if exhibition.thumbnail %}{% endif %}{{ exhibition.date_start|dateformat('Y-MM-dd') }} - {{ exhibition.date_end|dateformat('Y-MM-dd') }}{{ exhibition.title }}{{ exhibition.venue}}, {{exhibition.place}}, {{exhibition.country}}{{ exhibition.comment}}
+
+
+

{{ bag('translation', this.alt, 'performances') }}

+ + + + + + + + {% set performances = site.query('/performances').all() %} + {% for performance in performances %} + + {% set gif = performance.attachments.images.get(performance.thumbnail) %} + + + {% set location = performance.venue +", "+performance.place+", "+performance.country %} + + + + {% endfor %} +
{% if performance.thumbnail %}{% endif %}{{ performance.date_start|dateformat('Y-MM-dd') }}{{ performance.title|truncate(70, False, ' ...', 0) }}{{ location|truncate(50, False, ' ...', 0)}}{{ performance.comment|truncate(50, False, ' ...', 0)}}
+
+
+

{{ bag('translation', this.alt, 'lectures') }}

+ + + + + + + {% set lectures = site.query('/lectures').all() %} + {% for lecture in lectures %} + + {% set gif = lecture.attachments.images.get(lecture.thumbnail) %} + + + {% set location = lecture.venue +", "+lecture.place+", "+lecture.country %} + + + + + {% endfor %} +
{% if lecture.thumbnail %}{% endif %}{{ lecture.date|dateformat('Y-MM-dd') }}{{ lecture.title|truncate(70, False, ' ...', 0) }}{{ location|truncate(60, False, ' ...', 0)}}{{ lecture.comment|truncate(50, False, ' ...', 0)}}
+
+
+

{{ bag('translation', this.alt, 'curatings') }}

+ + + + + + + + {% set curatings = site.query('/curating').all() %} + {% for curating in curatings %} + + {% set gif = curating.attachments.images.get(curating.thumbnail) %} + + + + + + {% endfor %} +
{% if curating.thumbnail %}{% endif %}{{ curating.date_start|dateformat('Y-MM-dd') }} - {{ curating.date_end|dateformat('Y-MM-dd') }}{{ curating.title }}{{ curating.venue}}, {{curating.place}}, {{curating.country}}{{ curating.comment}}
+
+
+{% endblock %} diff --git a/templates/layout.html b/templates/layout.html new file mode 100644 index 0000000..f7bde33 --- /dev/null +++ b/templates/layout.html @@ -0,0 +1,66 @@ + + + + + + + + + {% set img = this.attachments.images.get(this.thumbnail) %} + + + joak - {% block title %}{% endblock %} + + + +
+ + + {% block body %}{% endblock %} +
+
+
+ {{ bag('translation', this.alt, 'background' ) }}: + +
+
+ {{ bag('translation', this.alt, 'foreground' ) }}: + +
+
+ + + diff --git a/templates/lecture.html b/templates/lecture.html new file mode 100644 index 0000000..284040e --- /dev/null +++ b/templates/lecture.html @@ -0,0 +1,20 @@ +{% extends "layout.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block body %} +
+
+
+

{{ bag('translation', this.alt, 'lecture') }}

+ +

{{ bag('translation', this.alt, 'title') }}: {{ this.title }}

+

{{ bag('translation', this.alt, 'date') }}: {{ this.date }}

+

{{ bag('translation', this.alt, 'venue') }}: {{ this.venue }}

+

{{ bag('translation', this.alt, 'place') }}: {{ this.place }}

+

{{ bag('translation', this.alt, 'country') }}: {{ this.country }}

+

{{ bag('translation', this.alt, 'website') }}: {{this.url}}

+

{{ bag('translation', this.alt, 'comment') }}: {{ this.comment }}

+ {{ this.info }} +
+
+
+{% endblock %} diff --git a/templates/lectures.html b/templates/lectures.html new file mode 100644 index 0000000..1ea76a3 --- /dev/null +++ b/templates/lectures.html @@ -0,0 +1,5 @@ +{% extends "layout.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block body %} +

{{ this.title }}

+{% endblock %} diff --git a/templates/macros/pagination.html b/templates/macros/pagination.html new file mode 100644 index 0000000..077cc5a --- /dev/null +++ b/templates/macros/pagination.html @@ -0,0 +1,15 @@ +{% macro render_pagination(pagination) %} + +{% endmacro %} 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 %} diff --git a/templates/performance.html b/templates/performance.html new file mode 100644 index 0000000..9a6ff23 --- /dev/null +++ b/templates/performance.html @@ -0,0 +1,21 @@ +{% extends "layout.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block body %} +
+
+
+

{{ bag('translation', this.alt, 'performance') }}

+ +

{{ bag('translation', this.alt, 'title') }}: {{ this.title }}

+

Start: {{ this.date_start|dateformat('Y-MM-dd') }}

+

{{ bag('translation', this.alt, 'end') }}: {{ this.date_end|dateformat('Y-MM-dd') }}

+

{{ bag('translation', this.alt, 'venue') }}: {{ this.venue }}

+

{{ bag('translation', this.alt, 'place') }}: {{ this.place }}

+

{{ bag('translation', this.alt, 'country') }}: {{ this.country }}

+

{{ bag('translation', this.alt, 'website') }}: {{this.url}}

+

{{ bag('translation', this.alt, 'comment') }}: {{ this.comment }}

+ {{ this.info }} +
+
+
+{% endblock %} diff --git a/templates/performances.html b/templates/performances.html new file mode 100644 index 0000000..1ea76a3 --- /dev/null +++ b/templates/performances.html @@ -0,0 +1,5 @@ +{% extends "layout.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block body %} +

{{ this.title }}

+{% endblock %} diff --git a/templates/work.html b/templates/work.html new file mode 100644 index 0000000..f51571b --- /dev/null +++ b/templates/work.html @@ -0,0 +1,33 @@ +{% extends "layout.html" %} +{% block title %}{{ this.title }}{% endblock %} +{% block thumbail %}{{ this.thumbnail }}{% endblock %} +{% block body %} +
+

{{ this.title }}

+ + + + + + + + {% if this.format %} + + {% endif %} + {% if this.tfwebsite == True %} + + {% endif %} + {% if this.tfrepo == True %} + + {% endif %} + {% if this.tfcollaborator == true %} + + {% endif %} +
{{ bag('translation', this.alt, 'time') }}: {{ this.year_start|dateformat('Y-MM-dd') }} - {% if this.ongoing == True %}{{ bag('translation', this.alt, 'ongoing') }}{% else %} {{ this.year_end|dateformat('Y-MM-dd') }} {% endif %}
{{bag('translation', this.alt, 'format')}}: {{this.format}}
{{bag('translation', this.alt, 'website')}}: {{this.website}}
Repository: {{this.repo}}
{{bag('translation', this.alt, 'collaborators')}}: {% for collaborator in this.collaborators.blocks %}{{ collaborator }} {% endfor %}
+
+
+
+ {{ this.content }} +
+
+{% endblock %} 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