We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c50bb0 commit 5aa78b7Copy full SHA for 5aa78b7
scripts/build.ts
@@ -58,13 +58,14 @@ function mapAuthor(author: string) {
58
const books = rawData.map(
59
(book: {
60
title: string
61
+ slug: string
62
description: string
63
authors: string[]
64
cover: string
65
}) => {
66
return {
67
...book,
- url: `${baseUrl}/books/${slug(book.title)}.json`,
68
+ url: `${baseUrl}/books/${slug(book.slug)}.json`,
69
cover: `${baseUrl}/covers/${book.cover}`,
70
descriptionHtml: marked.parse(book.description),
71
authors: book.authors.map(mapAuthor),
0 commit comments