Improvements to scripts and search, and improve pages on text-only browsers
This commit is contained in:
parent
5521291e5b
commit
6ff0de4a50
12 changed files with 34 additions and 28 deletions
|
|
@ -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} />
|
||||
))}
|
||||
|
|
|
|||
|
|
@ -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} />
|
||||
))}
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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} />
|
||||
))}
|
||||
|
|
|
|||
|
|
@ -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} />
|
||||
))}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue