Change info byline to be "Published on x by author" as a single sentence
This commit is contained in:
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}
|
||||
>{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
|
||||
>
|
||||
|
|
|
|||
|
|
@ -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, {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue