generated from amitmerchant1990/reverie
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategory.html
98 lines (84 loc) · 4.17 KB
/
category.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
---
layout: default
title: Category
permalink: /category/
icon: octicon-list-unordered
isNavItem: true
styles : [article-list.css,category.css]
scripts: [category.js]
---
<div class="row index">
<div class="col-sm-10 col-sm-offset-1 col-lg-9 col-lg-offset-1_5">
<div class="dropdown">
<button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
<span class="octicon octicon-list-unordered"></span> Categories
<span class="caret"></span>
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
<li>
<a href="javascript:void(0);" class="categories-item" cate="All">
All <span class="categories-badge"> {{site.posts | size}}</span>
</a>
</li>
{% for category in site.categories %}
<li>
<a href="javascript:void(0);" class="categories-item" cate="{{ category | first }}">
{{ category | first }} <span class="categories-badge">{{ category | last | size }}</span>
</a>
</li>
{% endfor %}
</ul>
</div>
<div>
<section class="category-slice" post-cate="All">
{% for post in site.posts %}
<article>
<br>
<header>
<a href="{{ site.baseurl | prepend: site.url }}/archive/#{{ post.date | date: '%Y-%m-%d' }}"><span class="octicon octicon-calendar"></span> <span>{{ post.date | date: "%Y-%m-%d" }}</span></a>
</header>
<div align="center" class="module">
<a class="title" href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">
{{ post.title }}
</a>
<a class="readmore" href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">Read More</a>
<footer>
{% for tag in post.tags %}
<a class="word-keep" href="{{ site.baseurl | prepend: site.url }}/tags/#{{ tag }}"><span class="octicon octicon-tag"></span> {{ tag }}</a>
{% endfor %}
</footer>
</div>
</article>
{% endfor %}
</section>
{% for category in site.categories %}
<section class="category-slice" post-cate="{{category | first}}">
<h1>{{category | first}}</h1>
{% for posts in category %}
{% for post in posts %}
{% if post.url %}
<article>
<br>
<header>
<a href="{{ site.baseurl | prepend: site.url }}/archive/#{{ post.date | date: '%Y-%m-%d' }}"><span class="octicon octicon-calendar"></span> <span>{{ post.date | date: "%Y-%m-%d" }}</span></a>
</header>
<div align="center" class="module">
<a class="title" href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">
{{ post.title }}
</a>
<a class="readmore" href="{{ post.url | prepend: site.baseurl | prepend: site.url }}">Read More</a>
<footer>
{% for tag in post.tags %}
<a class="word-keep" href="{{ site.baseurl | prepend: site.url }}/tags/#{{ tag }}"><span class="octicon octicon-tag"></span> {{ tag }}</a>
{% endfor %}
</footer>
</div>
</article>
{% endif %}
{% endfor %}
{% endfor %}
</section>
{% endfor %}
</div>
</div>
</div>