Seo utils
This commit is contained in:
parent
276ebc948f
commit
848f7eb7c1
@ -18,6 +18,8 @@
|
|||||||
"polyfills": "src/polyfills.ts",
|
"polyfills": "src/polyfills.ts",
|
||||||
"assets": [
|
"assets": [
|
||||||
"src/assets",
|
"src/assets",
|
||||||
|
"src/robots.txt",
|
||||||
|
"src/sitemap.xml",
|
||||||
"src/favicon.ico"
|
"src/favicon.ico"
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
@ -129,4 +131,4 @@
|
|||||||
"prefix": "app"
|
"prefix": "app"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { BrowserModule } from '@angular/platform-browser';
|
import { BrowserModule, Title } from '@angular/platform-browser';
|
||||||
import { NgModule, LOCALE_ID } from '@angular/core';
|
import { NgModule, LOCALE_ID } from '@angular/core';
|
||||||
import { HttpModule } from '@angular/http';
|
import { HttpModule } from '@angular/http';
|
||||||
/*pdf*/
|
/*pdf*/
|
||||||
@ -52,6 +52,7 @@ import { TextComponent } from './text/text.component';
|
|||||||
providers: [
|
providers: [
|
||||||
PageService,
|
PageService,
|
||||||
DedaloService,
|
DedaloService,
|
||||||
|
Title,
|
||||||
//{provide: LOCALE_ID, useValue: 'es-ES'}
|
//{provide: LOCALE_ID, useValue: 'es-ES'}
|
||||||
],
|
],
|
||||||
bootstrap: [AppComponent]
|
bootstrap: [AppComponent]
|
||||||
|
@ -2,6 +2,8 @@ import { Component, OnInit,LOCALE_ID, Inject } from '@angular/core';
|
|||||||
import { PageService } from '../page.service';
|
import { PageService } from '../page.service';
|
||||||
import { PageItem } from '../page';
|
import { PageItem } from '../page';
|
||||||
import { ActivatedRoute } from "@angular/router";
|
import { ActivatedRoute } from "@angular/router";
|
||||||
|
import { Meta } from '@angular/platform-browser';
|
||||||
|
import { Title } from '@angular/platform-browser';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-home',
|
selector: 'app-home',
|
||||||
@ -16,14 +18,16 @@ export class HomeComponent implements OnInit {
|
|||||||
constructor(
|
constructor(
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private pageService: PageService,
|
private pageService: PageService,
|
||||||
@Inject(LOCALE_ID) protected localeId: string
|
@Inject(LOCALE_ID) public localeId: string,
|
||||||
|
private titleService: Title,
|
||||||
|
private meta: Meta,
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// this.route.params.subscribe( params => console.log(params.id) );
|
// this.route.params.subscribe( params => console.log(params.id) );
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
console.log(this.localeId);
|
// console.log(this.localeId);
|
||||||
if (this.localeId==='es') this.homeImage = "industria-paisaia.es.svg";
|
if (this.localeId==='es') this.homeImage = "industria-paisaia.es.svg";
|
||||||
else if (this.localeId==='eu') this.homeImage = "industria-paisaia.svg";
|
else if (this.localeId==='eu') this.homeImage = "industria-paisaia.svg";
|
||||||
// this.pageService.getItems();
|
// this.pageService.getItems();
|
||||||
@ -32,6 +36,9 @@ export class HomeComponent implements OnInit {
|
|||||||
this.pages = data;
|
this.pages = data;
|
||||||
//this.pageService.currentPage
|
//this.pageService.currentPage
|
||||||
});
|
});
|
||||||
|
|
||||||
|
let title = "Industria Paisaia"
|
||||||
|
this.titleService.setTitle(title);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
|
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
|
||||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||||
|
<meta name="google-site-verification" content="OZI2HZ03xE118ZHu9QaWfRGm-dpUgFS4zrwfHlbj_UE" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<app-root></app-root>
|
<app-root></app-root>
|
||||||
|
2
src/robots.txt
Normal file
2
src/robots.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
User-agent: *
|
||||||
|
Allow: /
|
14
src/sitemap.xml
Normal file
14
src/sitemap.xml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
|
<url><loc>https://www.industriapaisaia.eus/eu/</loc></url>
|
||||||
|
<url><loc>https://www.industriapaisaia.eus/eu/</loc></url>
|
||||||
|
<url><loc>https://www.industriapaisaia.eus/eu/jarduerak</loc></url>
|
||||||
|
<url><loc>https://www.industriapaisaia.eus/eu/elkarrizketak</loc></url>
|
||||||
|
<url><loc>https://www.industriapaisaia.eus/eu/ikerketa</loc></url>
|
||||||
|
<url><loc>https://www.industriapaisaia.eus/eu/erakusketa</loc></url>
|
||||||
|
<url><loc>https://www.industriapaisaia.eus/es/</loc></url>
|
||||||
|
<url><loc>https://www.industriapaisaia.eus/es/entrevistas</loc></url>
|
||||||
|
<url><loc>https://www.industriapaisaia.eus/es/exposicion</loc></url>
|
||||||
|
<url><loc>https://www.industriapaisaia.eus/es/actividades</loc></url>
|
||||||
|
<url><loc>https://www.industriapaisaia.eus/es/trabajos-de-investigacion</loc></url>
|
||||||
|
</urlset>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user