fix: fixed CSM-014

This commit is contained in:
2026-05-09 16:38:00 +02:00
parent 1beffe6b07
commit de7ea12c9c
4 changed files with 33 additions and 19 deletions

View File

@@ -303,13 +303,15 @@ defmodule BDS.Rendering.ListArchive do
)
|> Enum.sort_by(fn {label, _posts} -> label end)
last_index = length(grouped_blocks) - 1
grouped_blocks
|> Enum.with_index()
|> Enum.map(fn {{date_label, grouped_posts}, index} ->
%{
date_label: date_label,
show_date_marker: true,
show_separator: index < length(grouped_blocks) - 1,
show_separator: index < last_index,
posts: Enum.sort_by(grouped_posts, &Map.get(&1, :created_at))
}
end)