-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.region
144 lines (118 loc) · 4.44 KB
/
site.region
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!doctype html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
{.if template.mobileStylesEnabled}
<meta name="viewport" content="width=device-width, initial-scale=1">
{.end}
{squarespace-headers}
<squarespace:script src="site.js" />
</head>
<body id="{squarespace.page-id}" class="{squarespace.page-classes}{.section website}{.section logoImageUrl} logo-image{.or} site-title{.end}{.end}">
<div id="mobileNav"><div class="wrapper">
<squarespace:navigation navigationId="mainNav" template="mobile-navigation" />
<squarespace:navigation navigationId="secondaryNav" template="mobile-navigation" />
</div></div>
<div id="mobileMenuLink"><a>Menu</a></div>
<div id="canvasWrapper">
<div id="canvas">
<div id="headerWrapper">
<header id="header">
<div id="logo" data-content-field="site-title">
{.section website}
<h1 class="logo">
<a href="/">
{.if logoImageUrl}
<img src="{logoImageUrl}?format=750w" alt="{siteTitle}" />
{.or}
{siteTitle}
{.end}
</a>
</h1>
{.section siteTagLine}<div class="logo-subtitle">{@}</div>{.end}
{.end}
</div>
<script>
Y.use('squarespace-ui-base', function(Y) {
Y.one("h1.logo").plug(Y.Squarespace.TextShrink, {
parentEl: Y.one('#logo')
});
});
</script>
<div id="topNav">
<squarespace:navigation navigationId="mainNav" template="navigation" />
</div>
<div id="backToThumbs">×</div>
</header>
</div>
<div id="pageWrapper">
<section id="page">
<div class="extra-wrapper page-header">
<squarespace:block-field id="page-header-{collection.id}" description="Page Header" columns="12" label="{collection.title} Header Content" />
</div>
<div id="mainContent" class="clear" role="main" data-content-field="main-content">
{.section collection}{.equal? typeName "products"}{.section categories}
<div id="categoryNav">
<input type="checkbox" name="category-nav-toggle" id="categoryNavToggle" class="category-nav-toggle hidden" />
<label for="categoryNavToggle" class="category-nav-toggle-label" onclick></label>
<nav class="category-nav">
<ul class="category-nav-links">
<li class="filter"><a>Filter{.if categoryFilter}: {categoryFilter}{.end}</a></li>
<li{.if categoryFilter}{.or} class="active-link all"{.end}><a href="{fullUrl}">All</a></li>
{.repeated section @}
<li{.equal? categoryFilter @} class="active-link"{.end}><a href="{fullUrl}?category={@|url-encode}">{@}</a></li>
{.end}
</ul>
</nav>
</div>
{.end}{.end}{.end}
{squarespace.main-content}
</div>
{.section collection}
{.collectionTypeNameEquals? blog}
<aside id="sidebarWrapper">
<div id="sidebar">
<squarespace:block-field id="sidebarBlocks" label="Sidebar Content" />
</div>
</aside>
{.end}
{.end}
<div id="footerWrapper"><footer id="footer">
<squarespace:block-field id="footerBlocks-1" label="Footer Content" />
{.section website}
{.if socialAccounts}
<div id="socialLinks" class="social-links" data-content-field="connected-accounts">
{.repeated section socialAccounts}<a{.if profileUrl} href="{profileUrl}" target="_blank"{.or} title="{screenname}"{.end} class="social-{serviceName}"></a>{.end}
</div>
{.end}
{.end}
</footer></div>
</section>
</div>
</div>
</div>
{squarespace-footers}
{.if template.mobileStylesEnabled}{.or}
<script>
Y.use('node', function() {
Y.on('domready', function() {
var move;
Y.all('.subnav a').each(function(a) {
a.on('touchstart', function() {
move = false;
});
a.on('touchmove', function() {
move = true;
});
a.on('touchend', function() {
if (move === false) {
window.location = a.getAttribute('href');
}
});
});
});
});
</script>
{.end}
</body>
</html>