Skip to content

Commit dfd4768

Browse files
committed
Update index.html
1 parent b4852d0 commit dfd4768

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

index.html

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@ <h2>Table of Contents</h2>
1515
</div>
1616

1717
<div class="posts">
18-
{% for post in site.posts %}
18+
{% for post in paginator.posts %}
1919
<article class="post">
2020
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
21-
2221
<div class="entry">
2322
<p>{{ post.content | truncate: 500 }}</p> <!-- Display first 500 characters of post content -->
2423
</div>
25-
2624
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
2725
</article>
2826
{% endfor %}
@@ -40,4 +38,4 @@ <h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
4038

4139
{% for link in site.data.navigation %}
4240
<a class="page-link" href="{{ link.url }}">{{ link.title }}</a>
43-
{% endfor %}
41+
{% endfor %}

0 commit comments

Comments
 (0)