Skip to content

Commit 42197fa

Browse files
committed
cleanup and filter with category
1 parent fb6259d commit 42197fa

File tree

3 files changed

+3
-41
lines changed

3 files changed

+3
-41
lines changed

_layouts/tag_index.html

-41
This file was deleted.

_posts/2014-12-01-whats-radio-pi.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
layout: post
33
title: What's Radio Pi?
4+
category: blog
45
---
56

67
My project for this December was to build a radio with a Raspberry Pi. One of my key goals is to make it so simple

index.html

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
<div class="posts-list">
99
{% for post in paginator.posts %}
10+
{% if post.category == 'blog' %}
1011
<article class="post-preview">
1112
<a href="{{ post.url | prepend: site.baseurl }}">
1213
<h2 class="post-title">{{ post.title }}</h2>
@@ -53,6 +54,7 @@ <h3 class="post-subtitle">
5354
{% endif %}
5455

5556
</article>
57+
{% endif %}
5658
{% endfor %}
5759
</div>
5860

0 commit comments

Comments
 (0)