summaryrefslogtreecommitdiff
path: root/templates/page.html
blob: f5fa458c64581777aaee68f0bb508f74c5337094 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% 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 %}