-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
38 lines (30 loc) · 1.27 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
---
layout: default
---
<div class="home">
<h1 class="page-heading">Posts</h1>
<!--
<div style="display:inline-block;margin-left:.5em;">
Browse by <a href="/blog/category/">Category</a> or <a href="/blog/tag/">Tag</a>
</div>
-->
<!-- note second span changed from an h2 on 11/29 -->
<!-- date format wasI'll, %Y"-->
{% for post in site.posts %}
{% assign currentdate = post.date | date: "%B %Y" %}
{% if currentdate != date %}
{% unless forloop.first %}</ul>{% endunless %}
<h1 id="y{{post.date | date: "%Y"}}">{{ currentdate }}</h1>
<ul>
{% assign date = currentdate %}
{% endif %}
<li><a href="{{site.baseurl}}{{ post.url }}">{{ post.title }}</a> in
<a href="{{site.baseurl}}/category.html#{{post.category}}">{{ post.category }}</a>
tagged as {% for tag in post.tags %}
<a href="{{site.baseurl}}/tag.html#{{tag}}">{{ tag }}</a>{% if forloop.last %}{% else %},{% endif %}
{% endfor %}
</li>
{% if forloop.last %}</ul>{% endif %}
{% endfor %}
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
</div>