Skip to content

Commit

Permalink
Twitter metatag (#2134)
Browse files Browse the repository at this point in the history
* add twitter image tag

* update robots.txt

* add og description
  • Loading branch information
yzlucas authored Nov 6, 2024
1 parent 8f5e091 commit 2882765
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ export class AppComponent implements OnDestroy, OnInit, AfterViewInit {
this.metaService.updateTag({ property: 'og:title', content: 'BC Wildfire Service' });
this.metaService.updateTag({ property: 'og:image', content: imageUrl });
this.metaService.updateTag({ property: 'og:site_name', content: 'BC Wildfire Service' });
this.metaService.updateTag({ name: 'description', content: `BC Wildfire Service App` });
this.metaService.updateTag({ property: 'og:description', content: `BC Wildfire Service App` });
this.metaService.updateTag({ name: 'twitter:card', content: 'summary_large_image' });
this.metaService.updateTag({ name: 'twitter:site', content: '@BCGovFireInfo' });
this.metaService.updateTag({ property: 'twitter:image', content: imageUrl });
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class AreaRestrictionsFullDetailsComponent implements OnInit {
});
this.initMap();
this.metaService.updateTag({ property: 'og:title', content: this.restrictionData?.name });
this.metaService.updateTag({ name: 'description', content: this.restrictionData?.name });
this.metaService.updateTag({ property: 'og:description', content: this.restrictionData?.name });

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class BansFullDetailsComponent implements OnInit {
});
this.initMap();
this.metaService.updateTag({ property: 'og:title', content: `Fire Ban on ${this.banData.description} Open Fires`});
this.metaService.updateTag({ name: 'description', content: `Fire Ban on ${this.banData.description} Open Fires` });
this.metaService.updateTag({ property: 'og:description', content: `Fire Ban on ${this.banData.description} Open Fires` });
}

async initMap() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class DangerRatingFullDetailsComponent implements OnInit {
async ngOnInit(): Promise<void> {
this.initMap();
this.metaService.updateTag({ property: 'og:title', content: `${this.rating} Danger Rating`});
this.metaService.updateTag({ name: 'description', content: `${this.rating} Danger Rating` });
this.metaService.updateTag({ property: 'og:description', content: `${this.rating} Danger Rating` });
}

dangerDescription() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export class EvacAlertFullDetailsComponent implements OnInit {
});
this.initMap();
this.metaService.updateTag({ property: 'og:title', content: `Evacuation Alert for ${this.evacData.name}`});
this.metaService.updateTag({ name: 'description', content: `Evacuation Alert for ${this.evacData.name}` });
this.metaService.updateTag({ property: 'og:description', content: `Evacuation Alert for ${this.evacData.name}` });

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export class IncidentHeaderPanelComponent implements AfterViewInit, OnInit {
}
}
this.metaService.updateTag({ property: 'og:title', content: `${this.incident?.incidentName}`});
this.metaService.updateTag({ name: 'description', content: `${this.incident?.incidentName}` });
this.metaService.updateTag({ property: 'og:description', content: `${this.incident?.incidentName}` });

}

Expand Down
2 changes: 1 addition & 1 deletion client/wfnews-war/src/main/angular/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="utf-8">
<meta name="description" content="BC Wildfire Service App">

<meta property="og:title" content="BC Wildfire Service">
<meta property="og:image" content="assets/images/share-wildfire.png">
<meta property="og:site_name" content="BC Wildfire Service">
<meta property="og:description" content="BC Wildfire Service App" />
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:site" content="@BCGovFireInfo'">
<meta name="twitter:image" content="assets/images/share-wildfire.png">
Expand Down

0 comments on commit 2882765

Please sign in to comment.