Add platforms to GameLayout
This commit is contained in:
parent
877c02ccfc
commit
837433364d
16 changed files with 144 additions and 42 deletions
|
|
@ -83,9 +83,10 @@ export const GET: APIRoute = async ({ site }) => {
|
|||
title: `New game! "${data.title}"`,
|
||||
pubDate: toNoonUTCDate(data.pubDate),
|
||||
link: `/games/${slug}`,
|
||||
description: `${data.contentWarning} ${data.descriptionPlaintext || data.description}`
|
||||
.replaceAll(/[\n ]+/g, " ")
|
||||
.trim(),
|
||||
description:
|
||||
`${t(data.lang, "game/platforms", data.platforms)}. ${data.contentWarning} ${data.descriptionPlaintext || data.description}`
|
||||
.replaceAll(/[\n ]+/g, " ")
|
||||
.trim(),
|
||||
categories: ["game"],
|
||||
content: sanitizeHtml(
|
||||
`<h1>${data.title}</h1>` +
|
||||
|
|
@ -101,6 +102,7 @@ export const GET: APIRoute = async ({ site }) => {
|
|||
);
|
||||
}),
|
||||
)}</p>` +
|
||||
`<hr><p>${t(data.lang, "game/platforms", data.platforms)}</p>` +
|
||||
`<hr><p><em>${data.contentWarning.trim()}</em></p>` +
|
||||
`<hr>${tinyDecode(await marked(body))}` +
|
||||
`<hr>${tinyDecode(await marked(data.description))}`,
|
||||
|
|
|
|||
|
|
@ -1,11 +1,10 @@
|
|||
---
|
||||
import SearchComponent from "astro-pagefind/components/Search";
|
||||
import GalleryLayout from "../layouts/GalleryLayout.astro";
|
||||
|
||||
---
|
||||
|
||||
<GalleryLayout pageTitle="Search">
|
||||
<meta slot="head-description" property="og:description" content="Bad Manners || Search" />
|
||||
<h1 class="m-2 text-2xl font-semibold text-stone-800 dark:text-stone-100">Search</h1>
|
||||
<SearchComponent id="search" className="my-4 pagefind-ui" />
|
||||
</GalleryLayout>
|
||||
<SearchComponent id="search" className="pagefind-ui my-4" />
|
||||
</GalleryLayout>
|
||||
|
|
|
|||
|
|
@ -16,11 +16,21 @@ const mainChaptersWithSummaries = mainChapters.filter((story) => story.data.summ
|
|||
---
|
||||
|
||||
<GalleryLayout pageTitle={series.data.name} enablePagefind={true}>
|
||||
<meta slot="head-description" property="og:description" content="Bad Manners || The story of Quince, Nikili, and Suu."/>
|
||||
<meta
|
||||
slot="head-description"
|
||||
property="og:description"
|
||||
content="Bad Manners || The story of Quince, Nikili, and Suu."
|
||||
/>
|
||||
<h1 class="m-2 text-2xl font-semibold text-stone-800 dark:text-stone-100">{series.data.name}</h1>
|
||||
<p class="my-4">This is the main hub for the story of Quince, Nikili, and Suu, as well as all bonus content.</p>
|
||||
<section class="my-2" aria-labelledby="main-chapters">
|
||||
<h2 id="main-chapters" class="p-2 text-xl font-semibold text-stone-800 dark:text-stone-100" data-pagefind-meta="type:series">Main chapters</h2>
|
||||
<h2
|
||||
id="main-chapters"
|
||||
class="p-2 text-xl font-semibold text-stone-800 dark:text-stone-100"
|
||||
data-pagefind-meta="type:series"
|
||||
>
|
||||
Main chapters
|
||||
</h2>
|
||||
<details
|
||||
class="mx-3 mb-6 mt-1 rounded-lg border border-stone-400 bg-stone-300 dark:border-stone-500 dark:bg-stone-700"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ if (uncategorizedTagsSet.size > 0) {
|
|||
|
||||
<GalleryLayout pageTitle="Tags">
|
||||
<meta
|
||||
property="og:description"
|
||||
property="og:description"
|
||||
slot="head-description"
|
||||
content="Bad Manners || Find all content with a specific tag."
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue