Improvements to scripts and search, and improve pages on text-only browsers

This commit is contained in:
Bad Manners 2024-08-29 15:39:38 -03:00
parent 5521291e5b
commit 6ff0de4a50
12 changed files with 34 additions and 28 deletions

View file

@ -63,6 +63,7 @@ const games = await Promise.all(
{t(game.data.lang, "game/warnings", game.data.platforms, game.data.contentWarning)}
</p>
<div aria-label="Authors">
<span>{game.authors.length == 1 ? "Author:" : "Authors:"}</span>
{game.authors.map((author) => (
<UserComponent rel="author" class="p-author" user={author} lang={game.data.lang} />
))}

View file

@ -138,6 +138,7 @@ const latestItems: LatestItemsEntry[] = await Promise.all(
{entry.altText}
</p>
<div aria-label="Authors">
<span>{entry.authors.length == 1 ? "Author:" : "Authors:"}</span>
{entry.authors.map((author) => (
<UserComponent rel="author" class="p-author" user={author} lang={entry.lang} />
))}

View file

@ -5,9 +5,7 @@ import GalleryLayout from "../layouts/GalleryLayout.astro";
<script>
import { WebAssembly } from "polywasm";
if (!("WebAssembly" in globalThis)) {
globalThis.WebAssembly = WebAssembly;
}
globalThis.WebAssembly = globalThis.WebAssembly || WebAssembly;
</script>
<GalleryLayout pageTitle="Search">

View file

@ -121,6 +121,7 @@ const totalPages = Math.ceil(page.total / page.size);
{t(story.data.lang, "story/warnings", story.data.wordCount, story.data.contentWarning)}
</p>
<div aria-label="Authors">
<span>{story.authors.length == 1 ? "Author:" : "Authors:"}</span>
{story.authors.map((author) => (
<UserComponent rel="author" class="p-author" user={author} lang={story.data.lang} />
))}

View file

@ -185,6 +185,7 @@ const totalWorksWithTag = t(
{t(story.data.lang, "story/warnings", story.data.wordCount, story.data.contentWarning)}
</p>
<div aria-label="Authors">
<span>{story.authors.length == 1 ? "Author:" : "Authors:"}</span>
{story.authors.map((author) => (
<UserComponent rel="author" class="p-author" user={author} lang={story.data.lang} />
))}
@ -242,6 +243,7 @@ const totalWorksWithTag = t(
{t(game.data.lang, "game/warnings", game.data.platforms, game.data.contentWarning)}
</p>
<div aria-label="Authors">
<span>{game.authors.length == 1 ? "Author:" : "Authors:"}</span>
{game.authors.map((author) => (
<UserComponent rel="author" class="p-author" user={author} lang={game.data.lang} />
))}