motorino/internal/build
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi 6987541f88 fix(news): group the archive by the month as written, drop the empty lists
- groupArchive compared each post with the last group only, so two posts near midnight
  at the end of a month, written with different offsets, listed the same month twice and
  the build failed with "both published as". Posts are grouped by their own year and
  month, newest first.
- {{news_archive}} is empty when there are no posts, so the index says there is no news
  once, and the heading of an empty {{news_archive}} or {{categories_list}} goes with it.
- tests for exactly ten posts, eleven posts, a single post, a title with quotes, an
  ampersand, a tag and non Latin letters, and a neighbour written in another language

Refs #9
2026-11-16 12:48:17 +01:00
..
blog.go fix(news): group the archive by the month as written, drop the empty lists 2026-11-16 12:48:17 +01:00
blog_test.go fix(news): group the archive by the month as written, drop the empty lists 2026-11-16 12:48:17 +01:00
build.go feat(news): blog list with pages, and an archive by year and month 2026-11-16 12:08:07 +01:00
build_test.go feat(feed): carry the full text in content:encoded 2026-11-16 12:09:03 +01:00
context.go feat(news): blog list with pages, and an archive by year and month 2026-11-16 12:08:07 +01:00
date.go feat(news): hide drafts and future posts, give the news one language 2026-11-16 12:04:50 +01:00
date_test.go feat(news): hide drafts and future posts, give the news one language 2026-11-16 12:04:50 +01:00
feed.go feat(feed): carry the full text in content:encoded 2026-11-16 12:09:03 +01:00
feed_test.go feat(feed): carry the full text in content:encoded 2026-11-16 12:09:03 +01:00
fixture_test.go feat(news): hide drafts and future posts, give the news one language 2026-11-16 12:04:50 +01:00
news.go feat(news): show the posts of the lists as note panels 2026-11-16 12:32:09 +01:00
news_test.go feat(news): hide drafts and future posts, give the news one language 2026-11-16 12:04:50 +01:00
pages.go fix(news): group the archive by the month as written, drop the empty lists 2026-11-16 12:48:17 +01:00
post.go feat(news): a post page with date, author, categories, summary and links 2026-11-16 12:06:55 +01:00
robots.go feat: assemble the site from content, templates and assets 2026-11-15 09:50:58 +01:00