Seo utils
This commit is contained in:
parent
276ebc948f
commit
848f7eb7c1
@ -18,6 +18,8 @@
|
||||
"polyfills": "src/polyfills.ts",
|
||||
"assets": [
|
||||
"src/assets",
|
||||
"src/robots.txt",
|
||||
"src/sitemap.xml",
|
||||
"src/favicon.ico"
|
||||
],
|
||||
"styles": [
|
||||
|
@ -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 { HttpModule } from '@angular/http';
|
||||
/*pdf*/
|
||||
@ -52,6 +52,7 @@ import { TextComponent } from './text/text.component';
|
||||
providers: [
|
||||
PageService,
|
||||
DedaloService,
|
||||
Title,
|
||||
//{provide: LOCALE_ID, useValue: 'es-ES'}
|
||||
],
|
||||
bootstrap: [AppComponent]
|
||||
|
@ -2,6 +2,8 @@ import { Component, OnInit,LOCALE_ID, Inject } from '@angular/core';
|
||||
import { PageService } from '../page.service';
|
||||
import { PageItem } from '../page';
|
||||
import { ActivatedRoute } from "@angular/router";
|
||||
import { Meta } from '@angular/platform-browser';
|
||||
import { Title } from '@angular/platform-browser';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
@ -16,14 +18,16 @@ export class HomeComponent implements OnInit {
|
||||
constructor(
|
||||
private route: ActivatedRoute,
|
||||
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) );
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
console.log(this.localeId);
|
||||
// console.log(this.localeId);
|
||||
if (this.localeId==='es') this.homeImage = "industria-paisaia.es.svg";
|
||||
else if (this.localeId==='eu') this.homeImage = "industria-paisaia.svg";
|
||||
// this.pageService.getItems();
|
||||
@ -32,6 +36,9 @@ export class HomeComponent implements OnInit {
|
||||
this.pages = data;
|
||||
//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">
|
||||
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
|
||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||||
<meta name="google-site-verification" content="OZI2HZ03xE118ZHu9QaWfRGm-dpUgFS4zrwfHlbj_UE" />
|
||||
</head>
|
||||
<body>
|
||||
<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