Skip to content

Commit

Permalink
fixed up indexes, linked tech, removed tech blogs
Browse files Browse the repository at this point in the history
  • Loading branch information
sddhrthrt committed Aug 16, 2016
1 parent 1c4ad05 commit ae659ce
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 38 deletions.
23 changes: 3 additions & 20 deletions source/archives/index.html
@@ -1,35 +1,18 @@
---
layout: home
layout: default
title: Blog Archive
---

{% include header.html %}
<div id="blog-archives">
<h2>Journal posts</h2>
{% for post in site.posts reverse %}
{% if post.categories contains "journal" %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
<h2>{{ year }}</h2>
{% endunless %}
<article>
{% include article.html %}
{% include archive_post.html %}
</article>
{% endif %}
{% endfor %}
<h2>Other posts</h2>
{% for post in site.posts reverse %}
{% unless post.categories contains "journal" %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
<h2>{{ year }}</h2>
{% endunless %}
<article>
{% include article.html %}
</article>
{% endunless %}
{% endfor %}
{% endfor %}
</div>

18 changes: 0 additions & 18 deletions source/blog/archives/index.html
Expand Up @@ -3,10 +3,8 @@
title: Blog Archive
---

<h2>Journal posts</h2>
<div id="blog-archives">
{% for post in site.posts reverse %}
{% if post.categories contains "journal" %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
Expand All @@ -15,22 +13,6 @@ <h2>{{ year }}</h2>
<article>
{% include archive_post.html %}
</article>
{% endif %}
{% endfor %}
</div>
<h2>Other posts</h2>
<div id="blog-archives">
{% for post in site.posts reverse %}
{% unless post.categories contains "journal" %}
{% capture this_year %}{{ post.date | date: "%Y" }}{% endcapture %}
{% unless year == this_year %}
{% assign year = this_year %}
<h2>{{ year }}</h2>
{% endunless %}
<article>
{% include archive_post.html %}
</article>
{% endunless %}
{% endfor %}
</div>

1 change: 1 addition & 0 deletions source/index.html
Expand Up @@ -16,6 +16,7 @@
<a class="prev" href="{{paginator.next_page}}">&larr; Older</a>
{% endif %}
<a href="/blog/archives">Blog Archives</a>
<a href="/tech/">— Tech Blog —</a>
{% if paginator.previous_page %}
<a class="next" href="{{paginator.previous_page}}">Newer &rarr;</a>
{% endif %}
Expand Down

0 comments on commit ae659ce

Please sign in to comment.