Skip to content

Commit

Permalink
more seo
Browse files Browse the repository at this point in the history
  • Loading branch information
RiddleTime committed Jun 19, 2024
1 parent d261fab commit 4f7e13c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/pages/guide/[slug].page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export default class GuideSlugComponent implements OnInit {

ngOnInit(): void {
this.post.forEach(x => {
this.meta.updateTag({ name: 'og:url', content: `https://race.elementfuture.com/guide/${x.attributes.slug}` })
this.meta.updateTag({ name: 'og:title', content: `Race Element - Guide | ${x.attributes.title}` })
this.meta.updateTag({ name: 'og:description', content: `${x.attributes.description}` })
this.meta.updateTag({ name: 'twitter:title', content: `Race Element - Guide | ${x.attributes.title}` })
Expand Down
1 change: 1 addition & 0 deletions src/app/pages/news/[slug].page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default class NewsSlugComponent implements OnInit{

ngOnInit(): void {
this.post.forEach(x => {
this.meta.updateTag({ name: 'og:url', content: `https://race.elementfuture.com/news/${x.attributes.slug}` })
this.meta.updateTag({ name: 'og:title', content: `Race Element - News | ${x.attributes.title}` })
this.meta.updateTag({ name: 'og:description', content: `${x.attributes.description}` })
this.meta.updateTag({ name: 'twitter:title', content: `Race Element - News | ${x.attributes.title}` })
Expand Down

0 comments on commit 4f7e13c

Please sign in to comment.