-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.html
More file actions
84 lines (83 loc) · 3.58 KB
/
index.html
File metadata and controls
84 lines (83 loc) · 3.58 KB
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
---
layout: default
class: home
comments: false
---
<!-- /.banner -->
<section class="container content">
<div class="columns">
<div class="column two-thirds" >
<ol class="repo-list">
{% for post in paginator.posts %}
<li class="repo-list-item">
<h3 class="repo-list-name">
<a href="{{ site.url }}{{ post.url }}">{{ post.title }}</a>
</h3>
{% if post.subtitle %}
<h4 class="repo-list-name">{{ post.subtitle }}</h4>
{% endif %}
<a href="{{ site.url }}{{ post.url }}">
<p class="repo-list-description">
{{ post.excerpt }}
</p></a>
<p class="repo-list-meta">
<span class="meta-info">
<span class="octicon octicon-person"></span> {% if post.author %}{{ post.author }}{% else %}{{ site.default_author }}{% endif %}
</span>
{% assign date = post.date | date: "%Y/%m/%d" %}
{% assign lastUpdate = post.lastUpdate | date: "%Y/%m/%d" %}
{% if post.lastUpdate and lastUpdate != date %}
<span class="meta-info">
<span class="octicon octicon-pencil"></span> {{ post.lastUpdate | date: "%Y/%m/%d" }}
</span>
{% else %}
<span class="meta-info">
<span class="octicon octicon-calendar"></span> {{ post.date | date: "%Y/%m/%d" }}
</span>
{% endif %}
<a href="{{ site.url }}{{ post.url }}"><span class="tags tags-black">
<span class="tag">View All</span>
</span></a>
</p>
</li>
{% endfor %}
</ol>
</div>
<div class="column one-third">
{% include sidebar-search.html %}
{% include sidebar-popular-repo.html %}
</div>
</div>
<div class="pagination text-align">
<div class="btn-group">
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href="{{ site.url }}/" class="btn btn-outline">«</a>
{% else %}
<a href="{{ site.url }}/page{{paginator.previous_page}}" class="btn btn-outline">«</a>
{% endif %}
{% else %}
<button disabled="disabled" href="javascript:;" class="btn btn-outline">«</button>
{% endif %}
{% if paginator.page == 1 %}
<a href="javascript:;" class="active btn btn-outline">1</a>
{% else %}
<a href="{{ site.url }}/" class="btn btn-outline">1</a>
{% endif %}
{% for count in (2..paginator.total_pages) %}
{% if count == paginator.page %}
<a href="javascript:;" class="active btn btn-outline">{{count}}</a>
{% else %}
<a href="{{ site.url }}/page{{count}}" class="btn btn-outline">{{count}}</a>
{% endif %}
{% endfor %}
{% if paginator.next_page %}
<a href="{{ site.url }}/page{{paginator.next_page}}" class="btn btn-outline">»</a>
{% else %}
<button disabled="disabled" href="javascript:;" class="btn btn-outline">»</button>
{% endif %}
</div>
</div>
<!-- /pagination -->
</section>
<!-- /section.content -->