Skip to content

Commit

Permalink
Update page titles and meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
arbisyarifudin committed Mar 12, 2024
1 parent 3fedd75 commit e0c7c04
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 3 deletions.
10 changes: 8 additions & 2 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,16 @@ import ContactDialog from '~/components/ContactDialog.vue';
// import { onClickOutside } from 'vue3-click-away'
useHead({
title: 'Arsyaf.dev',
title: 'Arbi Syarifudin',
titleTemplate (title) {
return title ? `${title} - Arsyaf.dev` : 'Arsyaf.dev'
},
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ name: 'description', content: '' },
{ name: 'author', content: 'Arbi Syarifudin' },
{ name: 'theme-color', content: '#000000' },
],
htmlAttrs: {
lang: 'id',
Expand Down
24 changes: 24 additions & 0 deletions pages/blog/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,30 @@
</div>
</template>

<script setup>
useHead({
title: 'The Post Title is Here',
meta: [
{
name: 'description',
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
},
{
name: 'og:title',
content: 'The Post Title is Here'
},
{
name: 'og:description',
content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
},
{
name: 'og:image',
content: 'https://via.placeholder.com/1280x500'
}
]
})
</script>

<style lang="scss" scoped>
.blog-detail {
background-color: #f9f5f2;
Expand Down
12 changes: 12 additions & 0 deletions pages/blog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@
</div>
</template>

<script setup>
useHead({
title: 'Blogs',
meta: [
{
name: 'description',
content: 'Here are some of the blog posts that Arbi Syarifudin has written.'
}
]
})
</script>

<style lang="scss" scoped>
.blog {
.blog-list {
Expand Down
18 changes: 18 additions & 0 deletions pages/profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,24 @@
</div>
</template>

<script setup>
useHead({
title: 'Profile',
meta: [
{
name: 'description',
content: 'Arbi Syarifudin is a Full Stack Developer, loves to code and design. He is passionate about combining programming and design to create functional and visually appealing web solutions.'
},
{
name: 'keywords',
content: 'Arbi Syarifudin, Full Stack Developer, Web Developer, Software Engineer, Laravel, Vue Js, Nuxt Js, Quasar, React Js, Node Js, Express Js, Codeigniter 4, MySQL, PostgreSQL, MongoDB, RESTful API, Linux, Ubuntu, AWS, Google Cloud, Docker, CI/CD, Git, Github, Gitlab, Postman, Insomnia, VS Code, Figma, Agile Methodology, Unit Testing, Database Designing, UI/UX Design, SEO, Google Analytics, Web Security, Performance Optimization'
}
]
})
</script>

<style lang="scss" scoped>
.profile {
padding-top: 20px;
Expand Down
12 changes: 11 additions & 1 deletion pages/service.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="container">
<section class="page-header">
<div class="page-title">My Services</div>
<p class="page-description">Here are the services I can provide.</p>
<p class="page-description">Here are the services that I can provide.</p>
</section>

<section class="service-list">
Expand Down Expand Up @@ -98,6 +98,16 @@

<script setup>
useHead({
title: 'Services',
meta: [
{
name: 'description',
content: 'Here are the services that Arbi Syarifudin can provide.'
}
]
})
const openContactDialog = () => {
const contactDialog = new bootstrap.Modal(document.getElementById('contactDialog'), { keyboard: false })
contactDialog.show()
Expand Down
24 changes: 24 additions & 0 deletions pages/work/[slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,30 @@
</div>
</template>

<script setup>
useHead({
title: 'Project 1',
meta: [
{
name: 'description',
content: 'This is a project that Arbi Syarifudin worked on in 2019. It is a web development and design project.'
},
{
name: 'og:title',
content: 'Project 1'
},
{
name: 'og:description',
content: 'This is a project that Arbi Syarifudin worked on in 2019. It is a web development and design project.'
},
{
name: 'og:image',
content: 'https://via.placeholder.com/1280x400'
}
]
})
</script>

<style lang="scss" scoped>
.work-detail {
.page-hero {
Expand Down
12 changes: 12 additions & 0 deletions pages/work/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,18 @@
</div>
</template>

<script setup>
useHead({
title: 'Works',
meta: [
{
name: 'description',
content: 'Here are some of the projects that Arbi Syarifudin has worked on.'
}
]
})
</script>

<style lang="scss" scoped>
.work {
.work-list {
Expand Down

0 comments on commit e0c7c04

Please sign in to comment.