Change info byline to be "Published on x by author" as a single sentence

This commit is contained in:
Jade Ellis
2024-07-24 13:08:31 +01:00
parent c6f0197ef9
commit 144b6bc9da
2 changed files with 3 additions and 5 deletions
@@ -96,10 +96,8 @@
>Published on <time class="dt-published" datetime={data.post.date} >Published on <time class="dt-published" datetime={data.post.date}
>{new Date(data.post.date).toLocaleDateString()}</time >{new Date(data.post.date).toLocaleDateString()}</time
></a ></a
> > <span
· >by <a class="p-author h-card" href={defaultAuthor.url}
<span
>By <a class="p-author h-card" href={defaultAuthor.url}
>{defaultAuthor.name}</a >{defaultAuthor.name}</a
></span ></span
> >
@@ -102,7 +102,7 @@ export async function GET({ url }) {
color: '#202020', color: '#202020',
margin: '10px 0 10px' margin: '10px 0 10px'
}, },
children: `Published on ${new Date(page.date).toLocaleDateString()} · By Jade Ellis · ${page.readingTime.text}` children: `Published on ${new Date(page.date).toLocaleDateString()} by Jade Ellis · ${page.readingTime.text}`
})] })]
}); });
const svg = await satori(template, { const svg = await satori(template, {