this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feur

+7 -7
+2 -2
src/pages/works/BlockLink.astro
··· 1 1 --- 2 2 import type { InferEntrySchema } from "astro:content" 3 3 4 - type BlockParagraph = 4 + type Block = 5 5 InferEntrySchema<"works">["content"][keyof InferEntrySchema<"works">["content"]]["blocks"][number] 6 6 7 - interface Props extends BlockParagraph {} 7 + interface Props extends Block {} 8 8 --- 9 9 10 10 <a href={Astro.props.url} class="block-link">{Astro.props.text}</a>
+3 -3
src/pages/works/BlockMedia.astro
··· 1 1 --- 2 2 import type { InferEntrySchema } from "astro:content" 3 3 4 - type BlockParagraph = 4 + type Block = 5 5 InferEntrySchema<"works">["content"][keyof InferEntrySchema<"works">["content"]]["blocks"][number] 6 6 7 - interface Props extends BlockParagraph {} 7 + interface Props extends Block {} 8 8 9 9 const { 10 10 alt, ··· 14 14 thumbnails, 15 15 dimensions, 16 16 } = Astro.props 17 - const generalContentType = contentType.split("/")[0] 17 + const generalContentType = contentType?.split("/")[0] ?? "" 18 18 const distSource = `https://media.gwen.works/${Astro.props.distSource}` 19 19 const thumbnailsSrcSet = Object.entries(thumbnails ?? {}) 20 20 .map(([size, path]) => `https://media.gwen.works/${path} ${size}w`)
+2 -2
src/pages/works/BlockParagraph.astro
··· 1 1 --- 2 2 import type { InferEntrySchema } from "astro:content" 3 3 4 - type BlockParagraph = 4 + type Block = 5 5 InferEntrySchema<"works">["content"][keyof InferEntrySchema<"works">["content"]]["blocks"][number] 6 6 7 - interface Props extends BlockParagraph {} 7 + interface Props extends Block {} 8 8 --- 9 9 10 10 <div class="block-paragraph-content" set:html={Astro.props.content}></div>