diff --git a/app/pages/collections.vue b/app/pages/collections.vue index a505073..aa72092 100644 --- a/app/pages/collections.vue +++ b/app/pages/collections.vue @@ -21,13 +21,17 @@ const TITLE = "Collections" const DESC = "Techit's personal-public collections" -useHead({ +useSeoMeta({ title: TITLE, - meta: [ - { name: 'description', content: DESC }, - { property: 'og:title', content: TITLE }, - { property: 'og:description', content: DESC }, - { property: 'og:type', content: 'website' } - ] + description: DESC, + ogTitle: TITLE + ' / ' + config.public.siteName, + ogDescription: DESC, + ogImage: post.value?.coverImage || undefined, + ogSiteName: config.public.siteName, + twitterCard: 'summary_large_image', + twitterTitle: TITLE + ' / ' + config.public.siteName, + twitterDescription: DESC, + twitterImage: post.value?.coverImage || undefined, + twitterSite: '@' + config.public.twitterUsername }) \ No newline at end of file diff --git a/app/pages/contact.vue b/app/pages/contact.vue index 4368b74..d240c60 100644 --- a/app/pages/contact.vue +++ b/app/pages/contact.vue @@ -49,13 +49,17 @@ const TITLE = "Contact" const DESC = "How to contact Techit" -useHead({ +useSeoMeta({ title: TITLE, - meta: [ - { name: 'description', content: DESC }, - { property: 'og:title', content: TITLE }, - { property: 'og:description', content: DESC }, - { property: 'og:type', content: 'website' } - ] + description: DESC, + ogTitle: TITLE + ' / ' + config.public.siteName, + ogDescription: DESC, + ogImage: post.value?.coverImage || undefined, + ogSiteName: config.public.siteName, + twitterCard: 'summary_large_image', + twitterTitle: TITLE + ' / ' + config.public.siteName, + twitterDescription: DESC, + twitterImage: post.value?.coverImage || undefined, + twitterSite: '@' + config.public.twitterUsername }) \ No newline at end of file diff --git a/app/pages/fonts.vue b/app/pages/fonts.vue index c722aaf..4a80f13 100644 --- a/app/pages/fonts.vue +++ b/app/pages/fonts.vue @@ -49,13 +49,17 @@ const fontUrl = config.public?.fontUrl || 'https://fonts.thawiang.com/'; const fontListFile = 'api/typefaces.json'; const { fonts, error, pending } = useFontLists(fontUrl, fontListFile); -useHead({ +useSeoMeta({ title: TITLE, - meta: [ - { name: 'description', content: DESC }, - { property: 'og:title', content: TITLE }, - { property: 'og:description', content: DESC }, - { property: 'og:type', content: 'website' } - ] + description: DESC, + ogTitle: TITLE + ' / ' + config.public.siteName, + ogDescription: DESC, + ogImage: post.value?.coverImage || undefined, + ogSiteName: config.public.siteName, + twitterCard: 'summary_large_image', + twitterTitle: TITLE + ' / ' + config.public.siteName, + twitterDescription: DESC, + twitterImage: post.value?.coverImage || undefined, + twitterSite: '@' + config.public.twitterUsername }) \ No newline at end of file diff --git a/app/pages/index.vue b/app/pages/index.vue index 576fbb9..e1df544 100644 --- a/app/pages/index.vue +++ b/app/pages/index.vue @@ -26,13 +26,13 @@
As I said above, I usually spend my free time learning more about software engineering. This includes server administration for dailitation.xyz. Over time, small and large projects have born and died.
Let's go take a look of my projects collection!