Skip to content

Commit

Permalink
fix: wrong url on books
Browse files Browse the repository at this point in the history
  • Loading branch information
lmammino committed Mar 21, 2024
1 parent 3c50bb0 commit 5aa78b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,14 @@ function mapAuthor(author: string) {
const books = rawData.map(
(book: {
title: string
slug: string
description: string
authors: string[]
cover: string
}) => {
return {
...book,
url: `${baseUrl}/books/${slug(book.title)}.json`,
url: `${baseUrl}/books/${slug(book.slug)}.json`,
cover: `${baseUrl}/covers/${book.cover}`,
descriptionHtml: marked.parse(book.description),
authors: book.authors.map(mapAuthor),
Expand Down

0 comments on commit 5aa78b7

Please sign in to comment.