-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
357 lines (323 loc) · 13.6 KB
/
index.html
File metadata and controls
357 lines (323 loc) · 13.6 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
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
---
layout: default
snail_trail: disabled
meta:
title: You Were Born for Adventure
description: Whatever your thoughts on church or your beliefs about God, you're welcome here.
image:
url: "//crds-media.imgix.net/7EFusaW9y0WFSxO9KCdumH/2edc127ce50430b3894692f7075122fb/spiritual-outfitters.jpg"
paginate:
articles:
per: 15
offset: 1
limit: 1
sort: published_at desc
topics:
per: 5
limit: 1
sort: published_at
series:
per: 1
limit: 1
sort: starts_at desc
messages:
per: 3
limit: 1
sort: published_at desc
home_collection:
collections:
- articles
- videos
- episodes
per: 10
limit: 1
sort: published_at desc
episodes:
per: 3
limit: 1
sort: published_at desc
podcasts:
per: 6
offset: 1
limit: 1
---
{% include home/_jumbotron.html %}
<!-- Good News Graphic -->
{% assign good_news_graphic = site.content_blocks | where: 'slug', 'good-news-graphic' | first %}
<!-- Assign Logged Out Home Ad -->
{% assign logged_out_home_ad = site.content_blocks | where: 'slug', 'logged-out-home-ad' | first %}
<!-- From /Watch -->
{% for serie in site.series %}
{% if serie.videos.size > 0 or serie.live_messages.size > 0 and serie.slug != 'easter-a-love-story' %}
{% assign series = serie %}
{% endif %}
{% endfor %}
{% if series.videos and series.videos.size != 0 %}
{% assign online = series.videos | sort: 'published_at' | last | get_doc %}
{% assign online_title = online.title | split: "|" %}
{% assign split_title = online.title | split: " " %}
{% assign current_week = split_title | slice: -1 %}
{% endif %}
{% if series.live_messages and series.live_messages.size != 0 %}
{% assign at_site = series.live_messages | sort: 'published_at' | last | get_doc %}
{% assign live_title = at_site.title | split: "|" %}
{% endif %}
{% assign watch_in_room_image = site.content_blocks | where: 'slug', 'watch-in-room-image' | first %}
{% assign watch_in_room_details = site.content_blocks | where: 'slug', 'watch-in-room-details' | first %}
{% assign watch_online_image = site.content_blocks | where: 'slug', 'watch-online-image' | first %}
{% assign watch_online_details = site.content_blocks | where: 'slug', 'watch-online-details' | first %}
{% assign watch_bottom_cta = site.content_blocks | where: 'slug', 'watch-bottom-cta' | first %}
<section class="bg-black flush-top" style="top: -1.5rem; position: relative;">
<div class="container">
<div class="row">
<div class="col-sm-12">
<!-- Logged Out Home Ad -->
{{ logged_out_home_ad.content_block | markdownify }}
</div>
</div>
</div>
</section>
<!-- Curent Series Section -->
<section class="bg-blue watch-section" style="margin-top:-24px;">
<div class="home-jumbo-rel" style="background-image: url('{{ series.background_image.url | imgix: site.imgix }}?{{ site.imgix_params.placeholder }}');" data-optimize-bg-img>
<div class="home-jumbo-overlay soft-ends">
<div class="container soft-ends">
<div class="row text-center push-top soft-ends">
<div class="col-sm-12">
<p calss="flush-bottom font-size-small text-white">
<strong class="cs-header text-uppercase">Current Series</strong>
</p>
<h2 class="section-header flush-ends text-white">{{ series.title }}</h2>
<p class="push-top col-sm-10 col-sm-offset-1">{{ series.description }}</p>
<div class="row btn push-right">
<crds-button block="true" display="outline" color="white" href="/watch" text="Watch the current teaching series"></crds-button>
</div>
</div>
</div>
<div class="row mobile-hard-bottom mobile-flush-bottom push-bottom soft-bottom">
<!-- Online Message -->
{% if online %}
{% if at_site %}
{% assign online_offset_classes = "col-md-offset-0" %}
{% else %}
{% assign online_offset_classes = "col-md-offset-3" %}
{% endif %}
<div class="col-md-6 {{ online_offset_classes }} col-sm-12 push-bottom series-card-pad">
<div class="bg-white weekend-container">
<div class="col-md-12 col-sm-8 col-xs-12 push-top soft-sides">
<h3 class="cs-med-header flush-ends push-quarter-bottom">Online Message</h3>
<p class="text-gray-light push-quarter-top">
25 minutes or less, created and optimized for video viewing.
</div>
<div class="row">
<div class="col-xs-12 weekend-message">
<hr class="push-sides">
<div class="row soft-sides soft-half-ends">
<a href="{{ online | media_url }}" class="push-half-bottom col-sm-6 col-xs-12" data-automation-id="message-video">
<div class="">
<img class="img-responsive img-full-width"
src="{{ online.image.url | imgix: site.imgix }}?{{ site.imgix_params.placeholder_sixteen_nine }}"
sizes="{{ site.image_sizes.one_fourth }}" data-optimize-img />
</div>
</a>
<div class="col-sm-6 col-xs-12">
<h5 class="component-header flush-ends">
<a href="{{ online | media_url }}" data-automation-id="message-title">{{ online_title | slice: 0 }} | week {{ current_week }}</a>
</h5>
<p class="text-gray-light push-quarter-top">{{ series.title }}</p>
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}
<!-- In-Room Message -->
{% if at_site %}
{% if online %}
{% assign at_site_offset_classes = "col-md-offset-0" %}
{% else %}
{% assign at_site_offset_classes = "col-md-offset-3" %}
{% endif %}
<div class="col-md-6 {{ at_site_offset_classes }} col-sm-12 push-bottom series-card-pad">
<div class="bg-white weekend-container">
<div class="col-md-12 col-sm-8 col-xs-12 push-top soft-sides">
<h5 class="cs-med-header flush-ends push-quarter-bottom">In-Room Message</h5>
<p class="text-gray-light push-quarter-top">
65 minute service filmed in front of a live audience.
</p>
</div>
<div class="row">
<div class="col-xs-12 weekend-message">
<hr class="push-sides">
<div class="row soft-sides soft-half-ends">
<a href="{{ at_site | media_url }}" class="push-half-bottom col-sm-6 col-xs-12" data-automation-id="message-video">
<div class="">
<img class="img-responsive img-full-width"
src="{{ at_site.image.url | imgix: site.imgix }}?{{ site.imgix_params.placeholder_sixteen_nine }}"
sizes="{{ site.image_sizes.one_fourth }}" data-optimize-img />
</div>
</a>
<div class="col-sm-6 col-xs-12">
<h5 class="component-header flush-ends">
<a href="{{ at_site | media_url }}" data-automation-id="message-title">{{ live_title | slice: 0 }} | week {{ current_week }}</a>
</h5>
<p class="text-gray-light push-quarter-top">{{ series.title }}</p>
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
</section>
<section class="soft-top bg-blue soft-bottom bg-topo best-content-pos">
<div class="container">
<div>
<div class="col-sm-8 mobile-hard soft-ends">
<div>
{% assign homepage_cards = site.content_blocks | where: 'slug', 'homepage-cards' | first %}
{{ homepage_cards.content_block }}
</div>
</div>
<div class="col-sm-4 soft-ends">
{% include home/_our-best-content.html %}
</div>
</div>
</div>
</section>
{% comment %}Kids Club Jumbotron{% endcomment %}
{% include home/_kids-club-jumbotron.html %}
{% comment %}Gear Up for Your Adventure{% endcomment %}
<section class="bg-orange">
<div class="bg-topo-50">
{% assign gear_up = site.content_blocks | where: 'slug', 'gear-up-home' | first %}
{{ gear_up.content_block }}
</div>
</section>
{% comment %}Articles, Podcasts, & More{% endcomment %}
<section class="bg-tan-light">
<div class="container">
<div class="text-center push-bottom">
<div class="text-blue mobile-push-half-sides">
<h2 class="component-header-box text-orange">Articles, Podcasts, & More</h2>
</div>
<p class="text-blue font-family-serif font-size-large">Unfiltered & authentic takes on life</p>
</div>
<div class="col-md-8 push-top">
{% assign most_recent = page.home_collection.docs | sort: "published_at" | reverse | first %}
{% assign author = most_recent.author | first %}
<a href="{{ most_recent.url }}" class="overlay-card">
<div class="bg-overlay"></div>
<div class="overlay-card-image">
<div class="beige-overlay"></div>
<img src="{{ most_recent.image.url | imgix: site.imgix }}?{{ site.imgix_params.placeholder_sixteen_nine }}"
sizes="{{ site.image_sizes.three_fourths }}" data-optimize-img />
</div>
<div class="overlay-card-content">
<p class="overlay-card-category">{{ most_recent.category.title }}</p>
<h2 class="overlay-card-title">{{ most_recent.title }}</h2>
<p class="overlay-card-author">{{ author.full_name }}</p>
{% include _media-label.html source=most_recent %}
</div>
</a>
<div class="card-deck carousel" data-crds-carousel="mobile-scroll" data-carousel-id="carousel-3cm29">
<div class="feature-cards card-deck--expanded-layout" data-crds-carousel="mobile-scroll">
{% assign recent = page.home_collection.docs | slice: 1, 2 %}
{% for item in recent limit: 3 %}
{% assign author = item.author | first %}
{% assign category = item.category | get_doc %}
<div class="card carousel-cell card-2x">
<a class="relative" href="{{ item.url }}">
{% if item.content_type == "article" or "video" %}
<div class="beige-overlay"></div>
{% endif %}
{% assign image = item.image.url %}
{% if item.content_type == 'episode' %}
{% assign image =item.podcast.image.url %}
{% endif %}
{% if image == blank %}
{% assign image = item.bg_image.url %}
{% endif %}
{% assign recommended_collection=site.messages %}
{% include _video-player-card.html %}
{% if image %}
<img src="{{ image | imgix: site.imgix }}?{{ site.imgix_params.placeholder_sixteen_nine }}" sizes="{{ site.image_sizes.cards_2x }}" data-optimize-img>
{% else %}
<img src="{{ site.default_image | imgix: site.imgix }}?{{ site.imgix_params.placeholder_sixteen_nine }}" sizes="{{ site.image_sizes.cards_2x }}" data-optimize-img>
{% endif %}
</a>
<div class="card-block hard soft-quarter-top">
<a class="text-orange font-size-smaller font-family-base-mid text-uppercase" href="{{ category.url }}">
{% if category.title %}
{{ category.title }}
{% else %}
{% endif %}
</a>
<h3 class="component-header flush">
<a href="{{ item.url }}">{{ item.title }}</a>
</h3>
<p class="card-text soft-quarter-top">
<a class="text-gray-light font-size-smaller" href="{{ author.url }}">{{ author.full_name }}</a>
</p>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
<div class="col-md-4">
<div class="soft-ends">
{% include home/_content-menu.html %}
</div>
</div>
</div>
</section>
{% include _subscribe-modal.html %}
{% comment %}Make a difference{% endcomment %}
{% include home/_you-are-needed.html %}
{% comment %}Ready to start your adventure?{% endcomment %}
<section class="bg-orange">
<div class="container soft-ends text-center softer-cta">
{% assign homepage_sign_up_cta = site.content_blocks | where: 'slug', 'homepage-sign-up-cta' | first %}
{{ homepage_sign_up_cta.content_block }}
</div>
</section>
<!-- Trigger for Hotjar to start tracking visitors to home page who are unauthenticated -->
<script>
if (window.hj) {
var triggerTimer = setInterval(hotJarTrigger, 1000);
function hotJarTrigger() {
if (window.hj.scriptLoaded == true) {
hj("trigger", "track_unauthenticated_homepage_users");
triggerFired();
}
}
function triggerFired() {
clearInterval(triggerTimer);
console.log("unauthenticated user - hotjar trigger");
}
}
</script>
<script>
window.env = {
gatewayServerEndpoint: '{{ site.gateway_server_endpoint }}',
streamScheduleEndpoint: '{{ site.stream_schedule_endpoint }}'
};
document.addEventListener("deferred-js-ready", countdownInit);
if (window.deferredJSReady) {
countdownInit();
}
function countdownInit() {
var c = new CRDS.Countdown();
c.getEventStatus();
}
</script>
{% javascript_link_tag autoplay async %}
{% javascript_link_tag skeleton async %}
<!-- we are crossroads -->