Skip to content

Commit f300f47

Browse files
committed
Move reviews to a subpage
1 parent 882abf9 commit f300f47

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
<h1 class="page-heading">Posts</h1>
88

99
<ul class="post-list">
10+
1011
{% for post in site.posts %}
12+
{% unless post.tags contains 'review' %}
1113
<li>
1214
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
1315

@@ -17,6 +19,7 @@ <h2>
1719
</a>
1820
</h2>
1921
</li>
22+
{% endunless %}
2023
{% endfor %}
2124
</ul>
2225

reviews.html

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
layout: page
3+
title: Reviews
4+
comments: yes
5+
permalink: /reviews/
6+
---
7+
8+
<div class="home">
9+
10+
<ul class="post-list">
11+
12+
{% for post in site.posts %}
13+
{% if post.tags contains 'review' %}
14+
<li>
15+
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
16+
17+
<h2>
18+
<a class="post-link" href="{{ post.url | prepend: site.baseurl }}">
19+
{% include subtitle.html post=post %}
20+
</a>
21+
</h2>
22+
</li>
23+
{% endif %}
24+
{% endfor %}
25+
</ul>
26+
27+
<p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | prepend: site.baseurl }}">via RSS</a></p>
28+
29+
</div>
30+

0 commit comments

Comments
 (0)