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
1 parent
7e5ad5f
commit 6af99d1
Showing
3 changed files
with
39 additions
and
0 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
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,19 @@ | ||
--- | ||
layout: single | ||
--- | ||
|
||
<section class="archive-post-list"> | ||
|
||
{% for post in site.posts %} | ||
{% assign currentDate = post.date | date: "%Y" %} | ||
{% if currentDate != myDate %} | ||
{% unless forloop.first %}</ul>{% endunless %} | ||
<h1>{{ currentDate }}</h1> | ||
<ul> | ||
{% assign myDate = currentDate %} | ||
{% endif %} | ||
<li><a href="{{ post.url }}"><span>{{ post.date | date: "%B %-d, %Y" }}</span> - {{ post.title }}</a></li> | ||
{% if forloop.last %}</ul>{% endif %} | ||
{% endfor %} | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
layout: single | ||
--- | ||
|
||
<div class="posts"> | ||
{% for post in site.posts %} | ||
<article class="post"> | ||
|
||
<h1><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h1> | ||
|
||
<div class="entry"> | ||
{{ post.excerpt }} | ||
</div> | ||
|
||
<a href="{{ site.baseurl }}{{ post.url }}" class="read-more">Read More</a> | ||
</article> | ||
{% endfor %} | ||
</div> |