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
2 changed files
with
44 additions
and
72 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 |
---|---|---|
@@ -1,73 +1,18 @@ | ||
<section id="blog-front-page"> | ||
{% for post in paginator.posts %} | ||
{% if post.link %} | ||
<article class="link"> | ||
<header> | ||
<h3> | ||
<a href="{{ post.link }}"> | ||
{{ post.title }} | ||
<span class="link-arrow">→</span> | ||
</a> | ||
</h3> | ||
<p class="post-metadata"> | ||
<time datetime="{{ post.date | date_to_xmlschema }}"> | ||
{{ post.date | date_to_string }} | ||
</time> | ||
<a class="permalink" title="Permalink" href="{{ post.url }}">∞</a> | ||
</p> | ||
</header> | ||
{{ post.content }} | ||
|
||
<div class="article-finish"><p>▪</p></div> | ||
|
||
</article> | ||
{% else %} | ||
<article class="post"> | ||
<header> | ||
<h2> | ||
<a href="{{ post.url }}"> | ||
{{ post.title }} | ||
</a> | ||
</h2> | ||
<p class="post-metadata"> | ||
<time class="posttime" datetime="{{ post.date | date_to_xmlschema }}"> | ||
{{ post.date | date_to_string }} | ||
</time> | ||
| | ||
<a class="permalink" title="Permalink" href="{{ post.url }}">∞</a> | ||
</p> | ||
</header> | ||
|
||
{% comment %} | ||
{{ post.excerpt | split: '<section class="footnotes">' | first }} | ||
<p class="more-link"> | ||
<a href="{{ post.url }}">Continue reading →</a> | ||
</p> | ||
{% endcomment %} | ||
|
||
{{ post.content }} | ||
|
||
<div class="article-finish"><p>▪</p></div> | ||
|
||
</article> | ||
{% endif %} | ||
{% endfor %} | ||
<div class="pagination"> | ||
{% if paginator.next_page %} | ||
<a class="pagination-item older" | ||
href="/page{{paginator.next_page}}/">← Older Posts</a> | ||
{% else %} | ||
<span class="pagination-item older">← Older Posts</span> | ||
{% endif %} | ||
{% if paginator.previous_page %} | ||
{% if paginator.page == 2 %} | ||
<a class="pagination-item newer" href="/">Newer Posts →</a> | ||
{% else %} | ||
<a class="pagination-item newer" | ||
href="/page{{paginator.previous_page}}/">Newer Posts →</a> | ||
{% endif %} | ||
{% else %} | ||
<span class="pagination-item newer">Newer Posts →</span> | ||
{% endif %} | ||
</div> | ||
<h3>Most recent blog posts</h3> | ||
<ul id="recent-posts"> | ||
{% for post in site.posts limit: 10 %} | ||
<li> | ||
<a href="{{ post.url }}"> | ||
{{ post.title }} | ||
</a> | ||
<time class="posttime" datetime="{{ post.date | date_to_xmlschema }}"> | ||
{{ post.date | date_to_string }} | ||
</time> | ||
{% comment %} {{ post.excerpt | split: '<section class="footnotes">' | first }} {% endcomment %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<a href="{{ site.baseurl }}/blog/" class="more-posts">All blog posts →</a> | ||
</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