-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<section class="other-posts"> | ||
<h2>Other Posts</h2> | ||
<ul class="content-index"> | ||
{% for post in site.posts %} | ||
{% assign index = true %} | ||
{% assign truncated = true %} | ||
{% assign content = post.content %} | ||
{% capture current_year %}{{post.date | date: "%Y"}}{% endcapture %} | ||
{% capture next_year %}{{post.next.date | date: "%Y"}}{% endcapture %} | ||
|
||
{% if current_year != next_year and next_year != '' %} | ||
<li class="year-mark"><h3>{{ post.date | date: "%Y" }}</h3></li> | ||
{% endif %} | ||
|
||
<li><a href="{{ site.baseurl }}{{ post.url }}">{% include article.html %}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters