Improve article linked data

This commit is contained in:
Kevin Kandlbinder 2023-12-02 14:12:58 +00:00
parent e5972e4c25
commit c7989faaf6

View file

@ -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}`)
};
})
}}