Skip to content

Commit

Permalink
LinkedIn Og Card Fix - Take Two (#157)
Browse files Browse the repository at this point in the history
* add twitter card

* try again
  • Loading branch information
bryantgillespie committed May 31, 2024
1 parent 9e69549 commit f642ee5
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 @@ -12,7 +12,7 @@ const { $directus, $readItems, $readSingleton } = useNuxtApp();
const { fullPath } = useRoute();
const {
public: { directusUrl },
public: { directusUrl, baseUrl },
} = useRuntimeConfig();
const { data: resource } = await useAsyncData(
Expand Down Expand Up @@ -96,6 +96,7 @@ useServerSeoMeta({
ogTitle: computed(() => unref(resource)?.seo?.title ?? unref(resource)?.title ?? null),
ogDescription: computed(() => unref(resource)?.seo?.meta_description ?? null),
twitterCard: 'summary_large_image',
ogUrl: computed(() => `${baseUrl}/${unref(type)}/${unref(slug)}`),
});
const publishDate = computed(() => {
Expand Down

0 comments on commit f642ee5

Please sign in to comment.