Reading updates.
This commit is contained in:
parent
d6b7074d06
commit
f3b1e88e95
6 changed files with 1168 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue