forked from BMLP/static-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (36 loc) · 1.26 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
---
layout: default
section: home
---
<div>
{% for section in site.data.sections %}
{% assign sectionkey = section[0] %}
{% assign sectionitem = section[1] %}
{% capture thecycle %}{% cycle 'odd', 'even' %}{% endcapture %}
<section id="{{sectionkey}}" class="section-item{% if thecycle == 'odd' %} section-alt{% endif %}">
<div class="container-fluid">
{% if (site.data.texts.alert.published and sectionkey == 'home') %}
<div class="container">
<div class="col-md-10 col-md-offset-1">
<div class="alert alert-warning text-center alert-dismissable" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<p>{{site.data.texts.alert.text}}</p>
</div>
</div>
</div>
{% endif %}
{% if sectionitem.title %}
<div class="page-title text-center">
<h2>{{sectionitem.title}}</h2>
<div class="lead"><p>{{sectionitem.leadin}}</p></div>
</div>
{% endif %}
<div class="section-content container">
<div class="col-lg-10 col-lg-offset-1">
{% include sections/{{sectionkey}}.html %}
</div>
</div>
</div>
</section>
{% endfor %}
</div>