-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
73 lines (67 loc) · 2.61 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
layout: default
---
{%- if page.paginator -%}
{%- assign paginator = page.paginator -%}
{%- endif -%}
{%- for post in paginator.posts -%}
<article itemscope itemtype='https://schema.org/Blog'>
<header>
<h2 itemprop='headline'><a href='{{ post.url }}'>{{ post.title }}</a></h2>
<div>
<small itemprop='datePublished'>{{ post.date | date: '%B %-d, %Y' }}</small>
</div>
</header>
<div>
{%- assign svgurl = '.' | append: post.thumb | append: '.svg' -%}
<div class='lazy-image'>
{%- svg '{{ svgurl }}' -%}
<img src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' data-src='{{ post.thumb }}' alt='{{ post.title }}'>
<noscript>
<img src='{{ post.thumb }}' alt='{{ post.title }}' itemprop='image'>
</noscript>
</div>
<div itemprop='text'>{{ post.content }}</div>
</div>
<footer>
<span>Tags:</span>
<ul>
{%- for tag in post.tags -%}
<li>
<a href='/{{ site.tags_dir }}/{{ tag }}/'>{{ tag }}</a>
</li>
{%- endfor -%}
</ul>
</footer>
</article>
{%- endfor -%}
{%- if paginator.total_pages > 1 -%}
{%- if page.search -%}
<nav>
{%- if paginator.previous_page -%}
{%- if paginator.page == 2 -%}
<a href='/{{ site.tags_dir }}/{{ page.search_tag }}'>← Newer posts</a>
{%- else -%}
<a href='/{{ site.tags_dir }}/{{ page.search_tag }}{{ paginator.previous_page_path }}'>← Newer posts</a>
{%- endif -%}
{%- endif -%}
{%- if paginator.next_page -%}
<a href='/{{ site.tags_dir }}/{{ page.search_tag }}{{ paginator.next_page_path }}'>Older posts →</a>
{%- endif -%}
</nav>
{%- else -%}
<nav>
{%- if paginator.previous_page -%}
{%- if paginator.page == 2 -%}
<a href='/'>← Newer posts</a>
{%- else -%}
<a href='{{ paginator.previous_page_path }}'>← Newer posts</a>
{%- endif -%}
{%- endif -%}
{%- if paginator.next_page -%}
<a href='{{ paginator.next_page_path }}'>Older posts →</a>
{%- endif -%}
</nav>
{%- endif -%}
{%- endif -%}
{%- include tags_cloud.html -%}