-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
96 lines (78 loc) · 3.4 KB
/
index.html
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
---
layout: default_style
---
{% assign ordered_pages = site.headlines | sort:"order_number" | reverse %}
{% assign num_pages = ordered_pages | size | minus: 1%}
<body>
<!-- Begin #carousel-section -->
<section id="carousel-section" class="section-global-wrapper">
<div class="col-sm-2 col-md-2 col-xs-1"> </div>
<div class="container col-sm-8 col-md-8 col-lg-8" >
<div class="row center">
<div id="carousel-1" class="carousel slide" data-ride="carousel">
<!-- Indicators -->
<ol class="carousel-indicators visible-lg">
{% for i in (0..num_pages) %}
{% if i == 0 %}
<li data-target="#carousel-1" data-slide-to="{{i}}" class="active" >
{% else %}
<li data-target="#carousel-1" data-slide-to="{{i}}" >
{% endif %}
</li>
{% endfor %}
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner" role="listbox">
<!-- Begin Slide 1 -->
{% for i in (0..num_pages) %}
{% assign thispage = ordered_pages[i] %}
{% if i == 0 %} <div class="item active"> {% else %}<div class="item">{% endif %}
<a href="{{thispage.targeturl}}">
<img src="{{thispage.image_url}}" width="100%" alt="{{thispage.image_alt}}">
<div class="carousel-caption">
<h3 class="carousel-title hidden-xs">{{thispage.title}}</h3>
<h4 class="carousel-body">{{thispage.caption}}</h4>
</div>
</a>
</div>
{% endfor %}
<!-- End Slide template -->
</div>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-1" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a class="right carousel-control" href="#carousel-1" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
</div>
</div>
</section>
<!-- End #carousel-section -->
<section id="services" class="services-section section-global-wrapper">
<div class="headlines-header col-sm-6 col-md-6 col-lg-6">
<div class="lead"> <h2> Highlights </h2> </div>
{% assign ordered_pages = site.headlines | sort:"order_number" | reverse %}
{% for news in ordered_pages limit: 5 %}
{% if news.order_number < 1000000 %}
<div class="headlines-item">
<h4> <a href="{{news.url}}"> {{ news.title }} </a> </h4> <p> {{news.lede}} </p>
</div>
{% endif %}
{% endfor %}
</div>
<div class="headlines-header col-sm-6 col-md-6 col-lg-6">
<div class="lead"> <h2> News </h2> </div>
{% assign ordered_pages = site.posts | sort:"date" | reverse %}
{% for news in ordered_pages limit: 10 %}
{% if news.order_number != 1000000 %}
<div class="headlines-item">
<span class="badge">{{ news.date | date: '%B %d, %Y' }} </span>
<a href="{{news.url}}"> {{ news.title }} </a> <p> {{news.caption}} </p>
</div>
{% endif %}
{% endfor %}
</div>
</section>
</body>