Skip to content

Commit

Permalink
feat(meta): update og:image meta tag to use absolute URL for better a…
Browse files Browse the repository at this point in the history
…ccessibility
  • Loading branch information
juamber-rgs committed Jan 14, 2025
1 parent d939ca0 commit 19b819a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class CertificatesComponent extends TranslationProvider implements OnInit
});
this.meta.updateTag({
name: 'og:image',
content: 'assets/images/meta-image.png',
content: 'https://github.com/JuamBer/personal-web/blob/master/src/assets/images/meta-image.png',
});
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/website/pages/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class HomeComponent extends TranslationProvider implements OnInit, AfterV
});
this.meta.updateTag({
name: 'og:image',
content: 'assets/images/meta-image.png',
content: 'https://github.com/JuamBer/personal-web/blob/master/src/assets/images/meta-image.png',
});
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/website/pages/projects/projects.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export class ProjectsComponent extends TranslationProvider implements OnInit, Af
});
this.meta.updateTag({
name: 'og:image',
content: 'assets/images/meta-image.png',
content: 'https://github.com/JuamBer/personal-web/blob/master/src/assets/images/meta-image.png',
});
});
}
Expand Down
5 changes: 5 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
name="keywords"
content="JuamBer, Juan Sáez García, Full Stack Web Developer, Front End, User Experience, Portfolio, Projects"
/>
<meta name="author" content="Juan Sáez García" />
<meta
name="og:image"
content="https://github.com/JuamBer/personal-web/blob/master/src/assets/images/meta-image.png"
/>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
<!-- FONT AWESOME -->
<script src="https://kit.fontawesome.com/3fd6ee7458.js" crossorigin="anonymous"></script>
Expand Down

0 comments on commit 19b819a

Please sign in to comment.