Added meta tags
This commit is contained in:
parent
513a66fe2b
commit
d772bd795e
1 changed files with 14 additions and 1 deletions
|
|
@ -5,6 +5,7 @@ import {MenuComponent} from "./menu/menu.component";
|
|||
import {HeroComponent} from "./hero/hero.component";
|
||||
import {SectionComponent} from "./section/section.component";
|
||||
import {FooterComponent} from "./footer/footer.component";
|
||||
import {Meta} from "@angular/platform-browser";
|
||||
|
||||
@Component({
|
||||
selector: 'iov-root',
|
||||
|
|
@ -14,5 +15,17 @@ import {FooterComponent} from "./footer/footer.component";
|
|||
styleUrl: './app.component.scss'
|
||||
})
|
||||
export class AppComponent {
|
||||
title = 'loreiov.com';
|
||||
|
||||
constructor(private metaTagService: Meta) {
|
||||
this.metaTagService.addTags([
|
||||
{
|
||||
name: 'keywords',
|
||||
content: 'Lorenzo Iovino, lorenzoiovino.com, Software Developer, Software Engineer, Sicily, Computer Science, Blog, Personal Page',
|
||||
},
|
||||
{ name: 'robots', content: 'index, follow' },
|
||||
{ name: 'author', content: 'Lorenzo Iovino' },
|
||||
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
||||
{ charset: 'UTF-8' },
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue