Skip to content

Commit

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

* update robots.txt
  • Loading branch information
yzlucas authored Nov 6, 2024
1 parent ed17db0 commit 8f5e091
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ export class AppComponent implements OnDestroy, OnInit, AfterViewInit {
this.metaService.updateTag({ name: '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 });
}

initializeDeepLinks() {
Expand Down
5 changes: 4 additions & 1 deletion client/wfnews-war/src/main/angular/src/robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ Disallow: /

User-agent: *
Disallow: /admin
Disallow: /incident

User-agent: facebookexternalhit
Allow: /

User-agent: *
Allow: /map
Allow: /dashboard
Allow: /list
Allow: /resources
Allow: /reportOfFire
Allow: /incident

0 comments on commit 8f5e091

Please sign in to comment.