-
-
+
+ {% assign posts = site.posts %}
+
+ {% if filter_type != 'all' %}
+ {% assign posts = posts | where: 'type', filter_type %}
+ {% endif %}
+
+ {% assign posts = posts | sort: 'date' | reverse %}
+
+ {% if posts == empty %}
+
+
+ {% endfor %}
+ {% endif %}
+
+ {% else %}
+ {% for post in posts %}
+ No results found for this filter.
+
+
+
-
-
-
-
- {% endfor %}
+
+ @@ -58,15 +72,15 @@
-
- {{ post.upvotes }}
-
-
- REPLY
-
-
- {{ post.comments_count }}
-
+
+ {{ post.upvotes }}
+
+
+ REPLY
+
+
+ {{ post.comments_count }}
+
{{ post.author }}
@@ -74,104 +88,14 @@
-
+