-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
57 lines (54 loc) · 1.73 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
---
layout: default
title: Welcome
allPosts:
- posts
- write_eng
- write_ind
---
<div class="home">
<h1 class="page-heading">Welcome</h1>
<p>
Feel free to look around or contact me. I am no longer writing on this site,
please go to my <a href="https://enter-rebel.github.io">new site</a>
</p>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">My last post</h3>
</div>
<div class="panel-body">
<div class="list-group">
{% assign combined= ''| split: ',' %}
{% for allPost in page.allPosts %}
{% for post in site[allPost] %}
{% assign combined= combined| push: post %}
{% endfor %}
{% endfor %}
{% assign combined= combined| sort: 'date'| reverse %}
{% for post in combined %}
<div class="list-group-item">
<div class="row-action-primary">
<i class="fa fa-file"></i>
</div>
<div class="row-content">
<h5 class="list-group-item-heading">{{post.title}}</h5>
{% if post.tags %}
{% for tag in post.tags%}
<a href="/tag/{{tag}}">
<span class="label label-info">{{tag}}</span>
</a>
{% endfor %}
{% endif %}
<p class="list-group-item-text">
{{ post.content |strip_html |truncatewords: 10 }} <a href="{{post.url}}">More</a>
</p>
</div>
</div>
<div class="list-group-separator">
</div>
{% endfor %}
</div>
</div>
</div>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>