-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
24 lines (22 loc) · 788 Bytes
/
index.html
File metadata and controls
24 lines (22 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---
layout: base
---
{% assign index = true %}
<section class="blog-index">
{% for post in site.posts limit: site.index.count %}
{% assign content = post.content %}
{% if post.styles %}<link rel="stylesheet" href="{{ post.styles }}" />{% endif %}
{% include article.html %}
{% endfor %}
</section>
<section id="blog-archives">
<h2 class="divider decorated"><a href="/archives/">Archives</a></h2>
{% for post in site.posts offset: site.index.count %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
<h3>{{ year }}</h3>
{% endunless %}
{% unless post.categories.first == "journal" %}{% include archive_article.html %}{% endunless %}
{% endfor %}
</section>