forked from ekoindia/eko-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.njk
49 lines (41 loc) · 1012 Bytes
/
index.njk
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
---
pagination:
data: collections.blog
size: 10
alias: posts
reverse: true
filter:
- all
- blog
eleventyExcludeFromCollections: true
---
{% extends "../_layouts/base.njk" %}
{% block head %}
{% if pagination.pageNumber > 0 %}
<link rel="prev" href="{{ env.BASE_URL }}{{ pagination.href.previous }}">
{% endif %}
{% if pagination.pageNumber < pagination.pages.length - 1 %}
<link rel="next" href="{{ env.BASE_URL }}{{ pagination.href.next }}">
{% endif %}
{% endblock %}
{% block custom_style %}
{{ css_blog | cssmin | safe }}
{% endblock %}
{% block main %}
<section class="block">
<header>
<h1>Blog</h1>
</header>
</section>
{% set blogposts = posts %}
{% include "blogslist.njk" %}
<section class="block">
<h3>Browse by Tag</h3>
<br>
<div class="layout horizontal wrap">
{% for item in collections.blogtags %}
<a class="nostyle" href="/blog/tags/{{item}}/">{% dotTag item, "filled hash" %}</a>
{% endfor %}
</div>
</section>
{% endblock %}