fix: Show all posts, not just by author

This commit is contained in:
Kerby Martino authored and Kerby Martino (aider) committed 2025-05-04 17:05:45 +08:00
1 parent e9c493707d
commit 265a0fbbf8
1 file changed
+3 -10
+3 -10
View File
@@ -1,7 +1,8 @@
<h3 class="mt-4 text-lg font-medium">{{ page.author }}'s submissions</h3>
{% comment %} Filter posts by the author specified in the page front matter {% endcomment %}
{% assign user_posts = site.posts | where: "author", page.author | sort: 'date' | reverse %}
{% comment %}{% assign user_posts = site.posts | where: "author", page.author | sort: 'date' | reverse %}{% endcomment %}
{% assign user_posts = site.posts | sort: 'date' | reverse %}
<div class="mt-4">
{% if user_posts.size > 0 %}
@@ -11,16 +12,8 @@
<article class="flex flex-col md:flex-row items-start">
<div class="flex-1 text-left">
<div>
<!-- Icon and Post Title -->
<!-- Post Title -->
<div class="flex items-center space-x-2 mb-0.5">
{% assign post_type = post.type | default: 'unknown' %}
{% if post_type == "frustration" %}
<img src="/assets/images/icon_frustrated.png" alt="Frustration" class="w-5 h-5 object-contain flex-shrink-0" title="Frustration">
{% elsif post_type == "weird" %}
<img src="/assets/images/icon_weird.png" alt="Weird" class="w-5 h-5 object-contain flex-shrink-0" title="Weird">
{% elsif post_type == "win" %}
<img src="/assets/images/icon_win.png" alt="Win" class="w-5 h-5 object-contain flex-shrink-0" title="Win">
{% endif %}
<p class="mt-0 mb-0">
<strong>
<a href="{{ post.url | relative_url }}" class="text-text-title font-bold text-md md:text-sm hover:underline">