Merge pull request #2 from Ninjaws/develop

[Updated] Meta tags for SEO
This commit is contained in:
2024-11-25 19:36:35 +01:00
committed by GitHub
+18
View File
@@ -4,6 +4,7 @@ import { AboutComponent } from './about/about.component';
import { ContactComponent } from './contact/contact.component'; import { ContactComponent } from './contact/contact.component';
import { ProjectsComponent } from './projects/projects.component'; import { ProjectsComponent } from './projects/projects.component';
import { SkillsComponent } from './skills/skills.component'; import { SkillsComponent } from './skills/skills.component';
import { Meta } from '@angular/platform-browser';
@Component({ @Component({
selector: 'app-root', selector: 'app-root',
@@ -14,6 +15,23 @@ import { SkillsComponent } from './skills/skills.component';
export class AppComponent implements AfterViewInit { export class AppComponent implements AfterViewInit {
title = 'portfolio'; title = 'portfolio';
constructor(private meta: Meta) {
this.meta.addTags([
{
name:'description',
content: 'Portfolio of Ian Vink, Full-Stack Developer'
},
{
name:'keywords',
content: 'portfolio, developer, web development, software development, software engineering, Full-Stack Development, Angular, Java, C++ Docker, projects, skills, resume'
},
{
name:'author',
content: 'Ian Vink'
}
])
}
ngAfterViewInit(): void { ngAfterViewInit(): void {
this.observeProjects(); this.observeProjects();