Preserve gallery order at Jekyll date precision

This commit is contained in:
2026-09-19 18:17:09 +03:30
parent b6b19c07bb
commit f6cb9573a7
19 changed files with 21 additions and 19 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ for position, (job, index) in enumerate(ordered):
title = f"photo-{job}-{index:02}"
if (job, index) == first_for_job[job]:
title = f"photo-{job}"
date = start - timedelta(microseconds=position)
date = start - timedelta(seconds=position)
lines = ["---", "layout: post", f'title: "{title}"',
f'date: "{date.isoformat()}"', "categories: art"]
if (job, index) in anchors: