forked from hydrogen-music/hydrogen-music
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (44 loc) · 1.66 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
---
layout: default
---
<!-- http://www.seanbuscay.com/blog/jekyll-teaser-pager-and-read-more/ -->
{% for post in site.posts %}
<div class="panel panel-default">
<div class="panel-body">
<h3 class="media-heading"><a class="text-dblue" href="{{ post.url }}">{{ post.title }}</a></h3>
<time class="media-meta text-muted" datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%b %-d, %Y" }}</time>
{{ post.excerpt }}
{% capture content_words %}
{{ post.content | number_of_words }}
{% endcapture %}
{% capture excerpt_words %}
{{ post.excerpt | number_of_words }}
{% endcapture %}
{% if excerpt_words != content_words %}
<p><a class="btn btn-sm btn-primary" href="{{ site.baseurl }}{{ post.url }}#read-more" role="button">Read more <i class="fa fa-arrow-circle-right"></i></a>
</p>
{% endif %}
</div>
<div class="panel-footer">
<i class="fa fa-tags text-primary"></i>
{% assign taglist = post.tags | sort %}
{% for tag in taglist %}
<small>
<a class="text-dblue" href="/tags/#{{ tag | cgi_escape }}" title="View posts tagged with "{{ tag }}"">{{ tag }}</a>
{% if forloop.last != true %}, {% endif %}
</small>
{% endfor %}
</div>
</div>
{% endfor %} {% if paginator.total_pages > 1 %}
<ul class="pager">
{% if paginator.previous_page %}
<li class="previous"><a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}">← Previous page</a>
</li>
{% endif %}
{% if paginator.next_page %}
<li class="next"><a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}">Next page →</a>
</li>
{% endif %}
</ul>
{% endif %}