this repo has no description
1
fork

Configure Feed

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

✨ Taglines

+19 -14
+13 -13
src/components/WorksGrid.astro
··· 89 89 ({ 90 90 id, 91 91 content, 92 - metadata: { wip, colors, started, finished, thumbnail }, 92 + metadata: { 93 + wip, 94 + colors, 95 + started, 96 + finished, 97 + thumbnail, 98 + additionalMetadata, 99 + }, 93 100 }) => { 101 + const tagline = additionalMetadata?.tagline; 94 102 const date = preferredDate({ started, finished }); 95 103 const thumb = findThumbnailBlock(content, thumbnail ?? "")!; 96 104 const attrs = imageAttrs(thumb); ··· 124 132 /> 125 133 {wip && <WIPIndicator />} 126 134 </h2> 127 - {date && ( 128 - <time datetime={isoDate(date)}> 129 - <Translated 130 - fr={format(date, "MMMM yyyy", { locale: frFR })} 131 - en={format(date, "MMMM, yyyy", { 132 - locale: enUS, 133 - })} 134 - /> 135 - </time> 135 + {tagline && ( 136 + <span class="tagline" i18n> 137 + {tagline} 138 + </span> 136 139 )} 137 140 </section> 138 141 </article> ··· 190 193 } 191 194 a { 192 195 text-decoration: none; 193 - } 194 - time { 195 - text-transform: capitalize; 196 196 } 197 197 </style>
+6 -1
src/content.config.ts
··· 84 84 created: nullableDate, 85 85 title_style: z.string().optional(), 86 86 made_with: z.array(z.string()).optional(), 87 + tagline: z 88 + .string() 89 + .optional() 90 + .transform((s) => s?.trim() || undefined), 87 91 }) 88 - .nullable(), 92 + .nullable() 93 + .default(() => ({})), 89 94 databaseMetadata: z.object({ 90 95 Partial: z.boolean(), 91 96 }),