Changes to SSR
This commit is contained in:
1 parent
06ab3b06bd
commit
8ccee4a70f
7 files changed
+21
-10
No files matched your search
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ export const routes: Routes = [
|
||||
data: {
|
||||
meta: {
|
||||
title: 'itzMiney\'s Home',
|
||||
description: 'Welcome to itzMiney\'s Homepage! \bHere you can find my portfolio and other cool stuff.',
|
||||
description: 'Welcome to itzMiney\'s Homepage! Here you can find my portfolio and other cool stuff.',
|
||||
image: 'https://itzminey.dev/assets/ogimg.png',
|
||||
url: 'https://itzminey.dev/about'
|
||||
}
|
||||
@@ -24,7 +24,7 @@ export const routes: Routes = [
|
||||
data: {
|
||||
meta: {
|
||||
title: 'itzMiney\'s Home',
|
||||
description: 'Welcome to itzMiney\'s Homepage! \bHere you can find my portfolio and other cool stuff.',
|
||||
description: 'Welcome to itzMiney\'s Homepage! Here you can find my portfolio and other cool stuff.',
|
||||
image: 'https://itzminey.dev/assets/ogimg.png',
|
||||
url: 'https://itzminey.dev/about'
|
||||
}
|
||||
@@ -48,7 +48,7 @@ export const routes: Routes = [
|
||||
data: {
|
||||
meta: {
|
||||
title: 'Blog | itzMiney',
|
||||
description: 'Welcome to my blog! \bI\'ll post occasional updates here on the stuff I\'m currently up to.',
|
||||
description: 'Welcome to my blog! I\'ll post occasional updates here on the stuff I\'m currently up to.',
|
||||
image: 'https://itzminey.dev/assets/ogimg.png',
|
||||
url: 'https://itzminey.dev/blog'
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user