diff --git a/src/components/Book.astro b/src/components/Book.astro index 31696d27..cc790c55 100644 --- a/src/components/Book.astro +++ b/src/components/Book.astro @@ -85,8 +85,13 @@ var idOfTitle = slugify(book.data.title);
-

- {book.data.title} +

+ + {book.data.title}

{book.data.publisher}, {formattedDate}, {book.data.role}
diff --git a/src/content/books/ableton-12-coobook.md b/src/content/books/ableton-12-cookbook.md similarity index 100% rename from src/content/books/ableton-12-coobook.md rename to src/content/books/ableton-12-cookbook.md diff --git a/src/content/books/the-dead-among-us.md b/src/content/books/the-dead-among-us.md index 70d0b190..0ab7d5dc 100644 --- a/src/content/books/the-dead-among-us.md +++ b/src/content/books/the-dead-among-us.md @@ -7,8 +7,16 @@ image: ~/assets/images/books/the-dead-among-us.png store_urls: - label: eBook - Direct from me (pay what you feel) url: https://ko-fi.com/s/0a76b75a05 + - label: Book and other perks via Ko-fi + url: https://ko-fi.com/chrischinchilla/tiers + - label: Book and other perks via Patreon + url: https://www.patreon.com/c/chrischinchilla - label: eBook - Amazon url: https://www.amazon.com/dp/B0DQGRTT11 + - label: eBook - DriveThruFiction + url: https://www.drivethrufiction.com/product/505735/The-dead-among-us + - label: eBook - All other stores + url: https://books2read.com/u/m09D0W --- **Print coming soon!** diff --git a/src/pages/books/[...slug].astro b/src/pages/books/[...slug].astro new file mode 100644 index 00000000..fba8091a --- /dev/null +++ b/src/pages/books/[...slug].astro @@ -0,0 +1,35 @@ +--- +import MarkdownPostLayout from '../../layouts/MarkdownLayout.astro'; +import { Image } from 'astro:assets'; +import { getCollection } from 'astro:content'; + +export async function getStaticPaths() { + const bookEntries = await getCollection('books'); + return bookEntries.map((entry) => ({ + params: { slug: entry.slug }, + props: { entry }, + })); +} + +const { entry } = Astro.props; +const { Content } = await entry.render(); +--- + + + {entry.data.title} + { + entry.data.store_urls && ( + + Buy a copy in the following places: + + + ) + } + +