diff options
author | joak <joak@nospace.at> | 2020-08-17 11:55:24 +0200 |
---|---|---|
committer | joak <joak@nospace.at> | 2020-08-17 11:55:24 +0200 |
commit | f60e9ccd5b046101903a79bf6afa0cf87fdd956c (patch) | |
tree | db29d0f55a1bc3347b63341551fa05308554101d /templates/page.html |
init
Diffstat (limited to 'templates/page.html')
-rw-r--r-- | templates/page.html | 43 |
1 files changed, 43 insertions, 0 deletions
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 == '/' %} + <div class="previews"> + {{ this.body }} + + {% set works = site.get('/works', this.alt) %} + {% for work in works.children %} + {% if work.selected %} + {{work.content.blocks._flowblock}} + <span class="previews"> + <h1 class="starth1">{{work.title}}</h1> + + {% 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) %} +<!-- + <a class="preview" href="{{work|url}}" style="z-index: {{(range(0, 50) | random)}}; position: fixed; left: calc({{range(2, 80) | random }}vW - {{0}}px); top: {{range(2, 80) | random }}vh;"> +--> + <a class="preview" href="{{work|url}}" style=""> + <img src="{{ img.thumbnail(r)|url }}" alt="{{ this.caption }}"/> + </a> + {% endif %} + {% endfor %} + {% endif %} + {% endfor %} + </span> + {% endif %} + {% endfor %} + </div> +{% else %} +<div class="page"> + <div class="pageinner"> + {{this.body}} + </div> +</div> +{% endif %} + +{% endblock %} |