forked from kitctf/www
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (30 loc) · 982 Bytes
/
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
---
layout: default
---
<div class="home">
<ul class="posts">
{% for post in site.categories.sticky %}
<li>
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }} - Sticky</span>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
{{ post.excerpt }}
</li>
{% endfor %}
{% for post in site.posts %}
{% assign sticky = false %}
{% for cat in post.categories %}
{% if cat == 'sticky' %}
{% assign sticky = true %}
{% endif %}
{% endfor %}
{% unless sticky %}
<li>
<span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
{{ post.excerpt }}
</li>
{% endunless %}
{% endfor %}
</ul>
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>