forked from JustGoodThemes/Scriptor-Jekyll-Theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
51 lines (47 loc) · 2.15 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
---
layout: default
---
<main class="main-content fadeInDown delay_075s">
{% for post in paginator.posts %}
<article class="post">
<header class="post-header">
<time class="post-date" datetime="{{ post.date | date: "%Y-%m-%d" }}">{{post.date | date: "%B %-d, %Y" }}</time>
<h2 class="post-title"><a href="{{ site.baseurl }}{{ post.url }}" rel="bookmark">{{post.title}}</a></h2>
<div class="post-meta">
By <span class="post-author">{{ site.data.author.name }}</span>{% if post.tags.size > 0 %}<span
class="post-tags"> in
{% for tag in post.tags %}<a href="{{ site.baseurl }}/tags/#{{ tag | cgi_escape }}" rel="tag">{{ tag }}</a>{% unless forloop.last %}, {% endunless %}{% endfor %}</span>{% endif %}
</div><!-- .post-meta -->
{% if post.feature_image and post.feature_image != "" %}
<figure class="post-thumbnail image-card width-wide">
<a href="{{site.baseurl}}{{post.url}}"><img src="{{ post.feature_image | relative_url }}"
alt="{{ post.title }}"></a>
</figure><!-- .post-thumbnail -->
{% endif %}
</header><!-- .post-header -->
<div class="post-content">
{% if post.content contains '<!--more-->' %}
{{ post.content | split:'<!--more-->' | first }}
<p class="read-more"><a href="{{ site.baseurl }}{{ post.url }}" class="read-more-link">Continue reading →</a>
</p>
{% else %}
{{ post.content }}
{% endif %}
</div><!-- .post-content -->
</article><!-- .post -->
{% endfor %}
{% if paginator.total_pages > 1 %}
<nav class="pagination">
<h2 class="screen-reader-text">Posts navigation</h2>
<div class="nav-links">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | relative_url }}" class="newer-posts">← Newer Posts</a>
{% endif %}
<span class="page-number">Page {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | relative_url }}" class="older-posts">Older Posts →</a>
{% endif %}
</div>
</nav><!-- .pagination -->
{% endif %}
</main><!-- .site-main -->