Skip to content

Commit 7ee7d25

Browse files
authored
bug: events only show on events page (#729)
* bug: events only show on events page * Update _posts/events/2025-10-02-workshop-document-your-package.md
1 parent 217385b commit 7ee7d25

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

_layouts/posts_gallery.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@
2525

2626

2727
{% assign entries_layout = page.entries_layout | default: 'list' %}
28-
{% assign postsByYear = site.posts | where_exp: "item", "item.hidden != true" | group_by_exp: 'post', 'post.date | date: "%Y"' %}
28+
{% assign postsByYear = site.posts
29+
| where_exp: "item", "item.hidden != true",
30+
| where_exp: "item", "item.type != 'event'",
31+
| group_by_exp: 'post', 'post.date ,
32+
| date: "%Y"'
33+
%}
2934
{% for year in postsByYear %}
3035
<section id="{{ year.name }}" class="taxonomy__section">
3136
<h2 class="archive__subtitle">{{ year.name }}</h2>

0 commit comments

Comments
 (0)