Revised Meta Data & improved Routing

This commit is contained in:
ItzMineyy committed 2024-12-24 23:05:50 +01:00
1 parent 97217cb149
commit 5097f7c254
6 files changed
+103 -33

No files matched your search

+54 -6
View File
@@ -5,10 +5,58 @@ import { BlogComponent } from './blog/blog.component';
import {NotFoundComponent} from './not-found/not-found.component';
export const routes: Routes = [
{ path: '', redirectTo: '/about', pathMatch: 'full' }, // Redirect default route to 'about'
{ path: 'about', component: AboutComponent },
{ path: 'portfolio', component: PortfolioComponent },
{ path: 'blog', component: BlogComponent },
{ path: '**', pathMatch: 'full', component: NotFoundComponent },
{
path: '',
redirectTo: '/about',
pathMatch: 'full'
}, // Redirect default route to 'about'
{
path: 'about',
component: AboutComponent,
data: {
meta: {
title: 'itzMiney\'s Home',
description: 'Welcome to itzMiney\'s Homepage!\bHere you can find my portfolio and other cool stuff.',
image: 'https://itzminey.dev/assets/ogimg.png',
url: 'https://itzminey.dev/about'
}
}
},
{
path: 'portfolio',
component: PortfolioComponent,
data: {
meta: {
title: 'Portfolio | itzMiney',
description: 'This is my portfolio where you can find examples of my designs and other projects!',
image: 'https://itzminey.dev/assets/ogimg.png',
url: 'https://itzminey.dev/portfolio'
}
}
},
{
path: 'blog',
component: BlogComponent,
data: {
meta: {
title: 'Blog | itzMiney',
description: 'Welcome to my blog!\bI\'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'
}
}
},
{
path: '**',
pathMatch: 'full',
component: NotFoundComponent,
data: {
meta: {
title: '404 | Page Not Found',
description: 'How the hell did you end up here?',
image: 'https://itzminey.dev/assets/ogimg.png',
url: 'https://itzminey.dev/404'
}
}
}
];