-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (61 loc) · 2.32 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
---
layout: default
title: "Nehul and Rahul's Blog"
navname: "Home"
description: "Creative Writing Hobbyists"
group: "navigation"
coverimg: "home-bg.jpg"
order: 1
---
<!-- Main Content -->
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
{% assign flaggeditems = site.tags.flag %}
{% for post in site.posts %}
{% if post.tags contains "flag" %}
{% assign flaggeditems = flaggeditems %}
{% endif %}
<!-- {% if post.author contains "Nehul" %}
<div class="post-preview">
<a href="{{ post.url }}">
<h2 class="post-title">
{{ post.title }}
</h2>
<h3 class="post-subtitle">
{{ post.description }}
</h3>
</a>
<p class="post-meta">Posted by <a href="#">{{ post.author }}</a> {{ post.date | date_to_string }}</p>
</div>
<hr>
{% endif %} -->
{% endfor %}
{% assign flaggeditems = flaggeditems | sort: "flagorder"%}
{% for item in flaggeditems %}
<div class="post-preview">
<a href="{{ item.url }}">
<h2 class="post-title">
{{ item.title }}
</h2>
<h3 class="post-subtitle">
{{ item.description }}
</h3>
</a>
<p class="post-meta">Posted by <a href="#">{{ item.author }}</a> {{ item.date | date_to_string }}</p>
</div>
<hr>
{% endfor %}
<!-- Pager -->
<ul class="pager">
<li class="previous">
<a href="#">← Newer Posts</a>
</li>
<li class="next">
<a href="#">Older Posts →</a>
</li>
</ul>
</div>
</div>
</div>
<hr>