-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtest.block
More file actions
94 lines (68 loc) · 1.5 KB
/
test.block
File metadata and controls
94 lines (68 loc) · 1.5 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{# Comments}
{# Line Comment}
{##BEGIN}
Block comment
{END##}
{# Constants}
{.space}
{.meta-left}
{# Directives}
{.if @.main-content}
{.if @.main-content || items|image-meta}
{.if @var|image-meta == "my string"}
{.if collection.description}{.or}{.end}
{.if title || body}{.end}
{.section website}
{siteTitle}
{.end}
{.repeated section items}
If there are any items, repeat this info for each item
{.end}
{.section item}
Item exists.
{.or}
Item does not exist.
{.end}
{.repeated section items}
This stuff shows for each item.
{.alternates with}
------ {# show this dashed line in between each item}
{.end}
{.var @firstImg items.0}
{.var @imageMeta @firstImg|image-meta}
{.var @pageThumb collection.mainImage}
{.var @this "String"}
{.section collection}
<div class="wrapper{.if @firstImg} has-image{.end}">
<div class="thumbnail-container">
<img {@pageThumb|image-meta} data-load="false">
</div>
</div>
{.end}
{# Predicates}
{# JSON-T}
{.Debug?}
{# Squarespace}
{.main-image?}{.or external-link?}{.end}
{.equal? typeName "in dex"}
{.equal?:arg1:arg 2}
{# Variables}
{# Cursor}
{@}
{@index}
{@.collection}
{# System variables}
{squarespace-headers}
{squarespace.page-classes}
{squarespace.page-id}
{collection.id}
{# Template variables}
{@variants|json|htmltag}
{# Formatters}
{@|social-button-inline}
{@|apply some-block.block}
{@|video load-false color-data}
{sourceUrl|truncate 42}
{addedOn|date %B %e, %Y}
{num|pluralize is are}
{num-people|pluralize/It depends/They depend}