-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (48 loc) · 1.79 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
layout: default
---
<section class="previews">
<div>
{% for post in paginator.posts %}
<figure class="absolute-bg preview__img" style="background-image: url('{{ post.image }}');"></figure>
{% endfor %}
<div class="previews__container">
<span>Welcome to</span>
<h1>{{ site.title }}</h1>
</div>
</div>
<div>
<header>
<ul class="tabs">
<li class="tabs__item">Posts</li>
<li class="tabs__item">Categories</li>
</ul>
</header>
<div class="tab">
<ul itemscope itemtype="http://schema.org/Blog">
{% for post in paginator.posts %}
<li class="preview" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
<a class="preview__link" href="{{ post.url | prepend: site.baseurl }}" itemprop="url">
<span class="preview__date" itemprop="datePublished" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%b %-d, %Y" }}</span>
<h2 class="preview__header" itemprop="name">{{ post.title }}</h2>
<p class="preview__excerpt" itemprop="description">{{ post.content | strip_html | truncatewords: 30 }}</p>
<span class="preview__more">Read More</span>
</a>
</li>
{% endfor %}
</ul>
{% if paginator.total_pages > 1 %}
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl }}">Previous</a>
{% endif %}
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl }}">Next</a>
{% endif %}
</div>
{% endif %}
{% include archive-link.html %}
</div>
{% include categories-tab.html %}
</div>
</section>