forked from forever-jekyll/forever-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (31 loc) · 828 Bytes
/
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
---
layout: default
---
<!-- Output first three movies in collection -->
<h1>Latest 3 Movie Reviews</h1>
<ol>
{% for movie in site.movies %}
{% increment my_counter %}
<p>counter: {{my_counter}}</p>
{% if my_counter > 3 %}
{% break %}
{% endif %}
<li>
<h2><a href="{{ movie.url }}">{{ movie.title }}</a></h2>
</li>
{% endfor %}
</ol>
<div class="posts">
{% for post in paginator.posts %}
<article class="post">
<a href="{{ site.baseurl }}{{ post.url }}" style="text-decoration: none">
<h1>{{ post.title }}</h1>
<div class="entry">
{{ post.excerpt }}
</div>
<span class="read-more">Read more ·{% include read-time.html content=post.content %}</span>
</a>
</article>
{% endfor %}
{% include pagination.html %}
</div>