-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (55 loc) · 2.17 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
---
layout: default
---
<div class="home">
<ul class="post-list">
{% assign there_is_stickys = false %}
{% for post in site.posts %}
{% if post.sticky == true or post.sticky == "true" %}
{% assign there_is_stickys = true %}
<li>
<h2 class="post-list-heading">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{% if post.post-title %}{{ post.post-title }}{% else %}{{ post.title }}{% endif %}</a>
</h2>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
<article class="excerpt">{{ post.content }}</article>
</li>
{% endif %}
{% endfor %}
{% if there_is_stickys == true or there_is_stickys == "true" %}
<li class="reduced_margin">
<hr />
</li>
{% endif %}
{% for post in site.posts limit: 2 %}
{% if post.sticky != true and post.sticky != "true" %}
<li>
<h2 class="post-list-heading">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{% if post.post-title %}{{ post.post-title }}{% else %}{{ post.title }}{% endif %}</a>
</h2>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
<article class="excerpt">{{ post.content }}</article>
</li>
{% endif %}
{% endfor %}
{% for post in site.posts offset: 2 %}
{% if post.sticky != true and post.sticky != "true" %}
<li>
<h2 class="post-list-heading">
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{% if post.post-title %}{{ post.post-title }}{% else %}{{ post.title }}{% endif %}</a>
</h2>
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
<article class="excerpt">
{{ post.excerpt }}
<div>
<a href="{{ post.url | prepend: site.baseurl }}">Read more ...</a>
</div>
</article>
</li>
{% endif %}
{% endfor %}
</ul>
</div>
<div>
<script defer src="{{ "/assets/scripts/footer-on-scroll-down.js" | prepend: site.baseurl }}"></script>
</div>