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
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2
2 changed files with 3 additions and 5 deletions

View file

@ -96,10 +96,8 @@
>Published on <time class="dt-published" datetime={data.post.date}
>{new Date(data.post.date).toLocaleDateString()}</time
></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
></span
>

View file

@ -102,7 +102,7 @@ export async function GET({ url }) {
color: '#202020',
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, {