forked from sergiokopplin/indigo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
blog.html
31 lines (30 loc) · 758 Bytes
/
blog.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
---
# blog page must be named index.html and in its own folder to support pagination
# https://jekyllrb.com/docs/pagination/
layout: page
title: Blog
pagination:
enabled: true
---
<section class="list">
{% if site.posts.size == 0 %}
<p class="text-center">Nothing published yet!</p>
{% elsif site.pagination.enabled %}
{% for post in paginator.posts %}
{% if post.category == 'blog' %}
{% if post.hidden != true %}
{% include blog-post.html %}
{% endif %}
{% endif %}
{% endfor %}
{% include pagination.html%}
{% else %}
{% for post in site.posts %}
{% if post.category == 'blog' %}
{% if post.hidden != true %}
{% include blog-post.html %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
</section>