Reading updates.

This commit is contained in:
David Soulayrol 2025-10-11 10:55:27 +02:00
commit f3b1e88e95
6 changed files with 1168 additions and 3 deletions

View file

@ -41,7 +41,7 @@ function plugins (helpers) {
if (p != null) {
published = p.c + ' : ' + p.n
if (book.c != null) {
if (p.C != null && book.c != null) {
published += ' (' + p.C[book.c] + ')'
}
published += ', ' + (book.y || '?')
@ -182,7 +182,7 @@ function plugins (helpers) {
const publishers = metalsmith.metadata().publishers
let body = '# Éditions\n'
Object.entries(getByPublisher(metalsmith.metadata().books)).forEach(([pub, books]) => {
Object.entries(getByPublisher(metalsmith.metadata().books)).sort().forEach(([pub, books]) => {
const p = publishers[pub]
// TODO: Extract collections in a set