Improve article linked data
This commit is contained in:
parent
e5972e4c25
commit
c7989faaf6
1 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
|||
import { Globe } from 'lucide-svelte';
|
||||
import { fly } from 'svelte/transition';
|
||||
import Seo from '$lib/components/SEO/SEO.svelte';
|
||||
import { makeCanonicalUrl } from '$lib/seoUtils';
|
||||
import { baseUrl, makeCanonicalUrl } from '$lib/seoUtils';
|
||||
|
||||
export let data: PageData;
|
||||
|
||||
|
@ -36,7 +36,8 @@
|
|||
author: data.post.authors?.map((author) => {
|
||||
return {
|
||||
'@type': 'Person',
|
||||
name: author.name
|
||||
name: author.name,
|
||||
url: makeCanonicalUrl(`/author/${author.slug}`)
|
||||
};
|
||||
})
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue