-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
83 lines (77 loc) · 2.67 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
---
layout: primary-page
weight: 1
---
<div id="home">
<div id="template">
{% for post in paginator.posts %}
<div class="post-block">
<div class="row">
<div class="col-xs-12">
<h2><a class="post-link" href="{{ post.url | prepend: site.pathname }}">{{ post.title }}</a></h2>
</div>
<div class="col-xs-12">
{% if post.blurb %}
<p class="post-blurb">
{{ post.blurb }}
</p>
{% endif %}
</div>
</div> <!-- .row -->
{% if post.category == 'How-to' %}
<div class="row post-details how-to">
{% elsif post.category == 'Strategies' %}
<div class="row post-details strategies">
{% elsif post.category == 'Workshops' %}
<div class="row post-details workshops">
{% else %}
<div class="row post-details troubleshooting">
{% endif %}
<div class="col-xs-12 col-md-5">
{% if post.category %}
<span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span>
<a href="{{ post.category | downcase | prepend: '/' | prepend: site.pathname }}" title="View all posts published in {{ post.category }}">{{ post.category }}</a>
{% endif %}
</div>
<div class="col-xs-12 col-md-7 pull-right">
{% if post.tags %}
<span class="glyphicon glyphicon-tags" aria-hidden="true"></span>
{% assign sort_indextags = post.tags | sort %}
{% for tag in sort_indextags %}
<a class="tag-link" href="{{ tag | prepend: '/tag/' }}" title="View all posts tagged with {{ tag }}">
{% if forloop.last == false %}
<div class="tag-label">
{{ tag | append: "," }}
</div>
{% else %}
<div class="tag-label">
{{ tag }}
</div>
{% endif %}
</a>
{% endfor %}
{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
{% if paginator.total_pages > 1 %}
<!-- Pager -->
<div class="row">
<ul class="pager">
{% if paginator.previous_page %}
<li class="previous">
<a href="{{ paginator.previous_page_path | prepend: site.pathname | replace: '//', '/' }}">← Previous Page</a>
</li>
{% endif %}
{% if paginator.next_page %}
<li class="next">
<a href="{{ paginator.next_page_path | prepend: site.pathname | replace: '//', '/' }}">Next Page →</a>
</li>
{% endif %}
</ul>
{% endif %}
</div>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.pathname }}">via RSS</a></p>
</div>