-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
executable file
·57 lines (49 loc) · 1.94 KB
/
Copy pathindex.html
File metadata and controls
executable file
·57 lines (49 loc) · 1.94 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
---
layout: default
---
<div class="home">
<a class="post-link" href="/news/"><h2>Latest news</h2></a>
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
<div class="carousel-inner" role="listbox">
{% assign flag = true %}
{% for post in site.posts limit:3%}
{% if flag == false %}
<div class="item">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
<img src="{{ post.thum }}" style="width:100%;height: 450px" > <!-- height:auto -->
<div class="carousel-caption">
<h3>{{ post.title }}</h3>
</div>
</a>
</div>
{% endif %}
{% if flag == true %}
{% assign flag = false %}
<div class="item active">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
<img src="{{ post.thum }}" style="width:100%;height: 450px" >
<div class="carousel-caption">
<h3>{{ post.title }}</h3>
</div>
</a>
</div>
{% endif %}
{% endfor %}
</div>
<ol class="carousel-indicators">
<li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
</ol>
<!-- Controls -->
<a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<p><br/> <br/></p>