-
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
102 changed files
with
3,881 additions
and
3,253 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,18 +1,15 @@ | ||
<section id="archive" class="other-posts"> | ||
<h2>Older Posts</h2> | ||
<ul class="content-index"> | ||
<div class="post__link--posts-by-year l-col--l"> | ||
<div class="nav--v"> | ||
{% 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> | ||
{% if current_year != next_year %} | ||
<a class="nav--v__link" href="/#{{current_year}}">{{current_year}}</a> | ||
{% endif %} | ||
|
||
<li><a href="{{ post.url }}">{% include article.html %}</a></li> | ||
{% endfor %} | ||
</ul> | ||
</section> | ||
</div> | ||
</div> |
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,46 +1,38 @@ | ||
{% if index %} | ||
<article class="index {{ post.type }}"> | ||
{% if truncated != true %} | ||
<a class="skip-to-archive" href="#archive">Skip to archived posts</a> | ||
{% endif %} | ||
<hgroup> | ||
{% if truncated %} | ||
<h2 class="title">{{ post.title }}</h2> | ||
<div class="l-colspan--r"> | ||
{% if index %} | ||
{% for post in site.posts %} | ||
{% capture post_year %}{{post.date | date: "%Y"}}{% endcapture %} | ||
{% if post_year != current_year %} | ||
{% capture current_year %}{{post_year}}{% endcapture %} | ||
<h2 class="blog__year" id="{{current_year}}">{{current_year}}</h2> | ||
{% endif %} | ||
<a class="blog__post" href="{{ post.url }}"> | ||
<i class="blog__post__date">{{ post.date | date_to_string }}</i> | ||
<b class="blog__post__title">{{ post.title }}</b> | ||
</a> | ||
{% endfor %} | ||
{% else %} | ||
<h2 class="title"><a href="{{ post.url }}">{{ post.title }}</a></h2> | ||
{% endif %} | ||
<section class="meta"> | ||
<p>published <span class="date">{{ post.date | date_to_string }}</span></p> | ||
</section> | ||
</hgroup> | ||
{% else %} | ||
<article class="post {{ page.type }}"> | ||
{% if truncated != true %} | ||
<a class="skip-to-archive" href="#archive">Skip to archived posts</a> | ||
{% endif %} | ||
<hgroup> | ||
<h2 class="title">{{ page.title }}</h2> | ||
<section class="meta"> | ||
<p>published <span class="date">{{ page.date | date_to_string }}</span></p> | ||
</section> | ||
</hgroup> | ||
{% endif %} | ||
{% if truncated != true %} | ||
<a class="post__link--posts" data-icon="<" href="/"> | ||
<span class="t-hidden">Back to blog posts</span> | ||
</a> | ||
{% endif %} | ||
|
||
{% if truncated != true %} | ||
<section class="content"> | ||
{{ content }} | ||
</section> | ||
{% endif %} | ||
<p class="post__date--s">{{ page.date | date_to_string }}</p> | ||
<h1 class="post__title">{{ page.title }}</h1> | ||
<p class="post__author--s">by {{ page.author }}</p> | ||
|
||
<footer> | ||
<p class="vcard"> | ||
{% if index %} | ||
<img class="photo" data-author-email="{{ post.author_email }}" alt="{{ post.author }}" /> | ||
<span class="dash">—</span> <span class="fn">{{ post.author }}</span> | ||
{% else %} | ||
<img class="photo" data-author-email="{{ page.author_email }}" alt="{{ page.author }}" /> | ||
<span class="dash">—</span> <span class="fn">{{ page.author }}</span> | ||
<div class="t-body"> | ||
{% if truncated != true %} | ||
{{ content }} | ||
{% endif %} | ||
</p> | ||
</footer> | ||
</article> | ||
</div> | ||
|
||
<footer class="post__footer"> | ||
<img alt="{{ page.author }}" data-author-email="{{ page.author_email }}" class="post__avatar"> | ||
<div class="blog__post__author-wrap"> | ||
<p class="post__author">{{ page.author }}</p> | ||
</div> | ||
</footer> | ||
{% endif %} | ||
</div> |
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
Binary file not shown.
Oops, something went wrong.