Skip to content

Commit da518bd

Browse files
committed
edited index for indexing by date
1 parent 141f413 commit da518bd

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

index.html

+3-12
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,8 @@
33
---
44

55
<div class="posts">
6-
{% for post in site.posts %}
7-
{% assign currentdate = post.date | date: "%Y" %}
8-
{% if currentdate != date %}
9-
{% unless forloop.first %}</ul>{% endunless %}
10-
<h1 id="y{{post.date | date: "%Y"}}">{{ currentdate }}</h1>
11-
<ul>
12-
{% assign date = currentdate %}
13-
{% endif %}
14-
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
15-
{% if forloop.last %}</ul>{% endif %}
16-
<article class="post">
6+
{% for post in site.posts %}
7+
<article class="post">
178

189
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
1910

@@ -23,6 +14,6 @@ <h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1>
2314

2415
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a>
2516
</article>
26-
{% endfor %}
17+
{% endfor %}
2718
</div>
2819

0 commit comments

Comments
 (0)