Skip to content

Commit

Permalink
add author url to resource page
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantgillespie committed Sep 7, 2023
1 parent e22ac81 commit 26e47f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/ResourcePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const { data: resource } = await useAsyncData(
);
if (!unref(resource)) {
throw createError({ statusCode: 404, statusMessage: 'resource Not Found', fatal: true });
throw createError({ statusCode: 404, statusMessage: 'Resource Not Found', fatal: true });
}
useHead({
Expand Down Expand Up @@ -111,6 +111,7 @@ useSchemaOrg([
author: [
{
name: unref(resource)?.author?.name ?? '',
url: unref(resource)?.author?.slug ? `https://directus.io/team/${unref(resource)?.author?.slug}` : undefined,
image: unref(resource)?.author?.image
? `https://marketing.directus.app/assets/${unref(resource)?.author?.image}`
: undefined,
Expand Down

0 comments on commit 26e47f0

Please sign in to comment.