Skip to content

Commit

Permalink
fix: meta title
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcaiana committed Aug 18, 2023
1 parent 3809e6f commit 0a697d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
4 changes: 3 additions & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const meta = getSocialMeta(global)
useHead({
titleTemplate: (title = '') =>
title !== global.title ? `${title} · ${global.title}` : title,
title !== global.title && title !== ''
? `${title} · ${global.title}`
: global.title,
htmlAttrs: {
lang: 'pt-br',
},
Expand Down
4 changes: 0 additions & 4 deletions pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<script setup>
useHead({
title: 'Home',
})
const { projects } = await $fetch('/api/algolia/projects')
const dataProjects = projects.slice(0, 3).map((project) => ({
Expand Down
3 changes: 1 addition & 2 deletions utils/global.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export default {
url: 'https://www.gabrielcaiana.com',
title:
'Gabriel Caiana | Desenvolvedor Front-end Especializado em JavaScript, TypeScript, Vue e Nuxt',
title: 'Gabriel Caiana | Desenvolvedor Front-end',
author: 'Gabriel Caiana',
description:
'Desenvolvedor Front-end Sênior especializado em JavaScript, TypeScript, Vue e Nuxt.',
Expand Down

0 comments on commit 0a697d5

Please sign in to comment.