-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·117 lines (103 loc) · 4.57 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
---
layout: default
---
<div class="header-bar" style="margin-bottom: 70px">
<div class="title-container">
<p class="blog-title"><a href="/">{{ site.title }}</a></p>
</div>
</div>
<header class="blog-header" style="display: none;">
{% if site.logo %}
<a class="blog-logo" href="{{site.app_url}}" style="background-image: url('{{ site.logo }}')">{{ site.title }}</a>
{% endif %}
<h1 class="blog-title">{{ site.title }}</h1>
<h2 class="blog-description">{{ site.description }}</h2>
<div class="custom-links">
{% for social in site.social %}
{% if social.url %}
<a class="icon-{{ social.icon }}" href="{{ social.url }}" {% if social.desc %} title="{{ social.desc }}"{% endif %}">
<i class="fa fa-{{ social.icon }}"></i>
</a>
{% endif %}
{% endfor %}
</div>
</header>
<main class="content" role="main">
<div class="cf frame">
{% for post in paginator.posts %}
{% if post.pinned %}
<article class="post pinned" itemscope itemtype="http://schema.org/BlogPosting" role="article">
<p class="pinned-label">Pinned</p>
<div class="article-item">
{% assign author = site.data.authors[post.author] %}
<section class="author">
<div class="author-image" style="background-image: url({{ author.image }})">author</div>
<div class="author-name">{{ author.name }}</div>
<div class="post-meta">
<time datetime="{{ post.date | date: "%F %R" }}">{{ post.date | date: "%b %-d, %Y" }}</time>
</div>
</section>
<header class="post-header">
<h2 class="post-title" itemprop="name"><a href="{{ post.url }}" itemprop="url">{{ post.title }}</a></h2>
<h3 class="post-subtitle">{{ post.subtitle }}</h3>
</header>
<section class="post-excerpt" itemprop="description">
<p>{{ post.excerpt | truncatewords: 50 }}</p>
</section>
<a class="read-more" href="{{ post.url }}">Read more...</a>
</div>
</article>
{% endif %}
{% endfor %}
{% for post in paginator.posts %}
{% if post.pinned or post.unlisted %}
{% else %}
<article class="post" itemscope itemtype="http://schema.org/BlogPosting" role="article">
<div class="article-item">
{% assign author = site.data.authors[post.author] %}
<section class="author">
<div class="author-image" style="background-image: url({{ author.image }})">author</div>
<div class="author-name">{{ author.name }}</div>
<div class="post-meta">
<time datetime="{{ post.date | date: "%F %R" }}">{{ post.date | date: "%b %-d, %Y" }}</time>
</div>
</section>
<header class="post-header">
<h2 class="post-title" itemprop="name">
{% if post.external_url %}
<a href="{{ post.external_url }}" itemprop="url" target="_blank">{{ post.title }}</a>
{% else %}
<a href="{{ post.url }}" itemprop="url">{{ post.title }}</a>
{% endif %}
</h2>
<h3 class="post-subtitle">{{ post.subtitle }}</h3>
</header>
<section class="post-excerpt" itemprop="description">
<p>{{ post.excerpt | truncatewords: 50 }}</p>
</section>
{% if post.external_url %}
<a class="read-more" href="{{ post.external_url }}" target="_blank">Read more...</a>
{% else %}
<a class="read-more" href="{{ post.url }}">Read more...</a>
{% endif %}
</div>
</article>
{% endif %}
{% endfor %}
</div>
<nav class="pagination" role="navigation">
{% if paginator.next_page %}
<a class="newer-posts" href="/page{{paginator.next_page}}">← Older posts</a>
{% endif %}
<span class="page-number">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.previous_page %}
{% if paginator.page == 2 %}
<a class="older-posts" href="/">Newer posts →</a>
{% else %}
<a class="older-posts" href="/page{{paginator.previous_page}}">Newer posts →</a>
{% endif %}
{% endif %}
</nav>
<!-- {{!! After all the posts, we have the previous/next pagination links }}
{{pagination}} -->
</main>