mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Change info byline to be "Published on x by author" as a single sentence
This commit is contained in:
@@ -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, {
|
||||||
|
|||||||
Reference in New Issue
Block a user