Changes to SSR

This commit is contained in:
ItzMineyy committed 2024-12-25 17:01:04 +01:00
1 parent 06ab3b06bd
commit 8ccee4a70f
7 files changed
+21 -10

No files matched your search

+7
View File
@@ -40,6 +40,13 @@ export class AppComponent implements OnInit {
)
.subscribe(data => {
const meta = data['meta'] || {};
if (this.router.url === '/') {
// Add specific fallback meta for root route
meta.title = meta.title || 'itzMiney\'s Home';
meta.description = meta.description || 'Welcome to itzMiney\'s Homepage! Here you can find my portfolio and other cool stuff.';
meta.image = meta.image || 'https://itzminey.dev/assets/ogimg.png';
meta.url = meta.url || 'https://itzminey.dev';
}
this.updateMetaTags(meta);
});
}