Skip to content

Commit

Permalink
add better meta tags for guides and news
Browse files Browse the repository at this point in the history
  • Loading branch information
RiddleTime committed Jun 13, 2024
1 parent aa06bbf commit 53cf71f
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/app/pages/guide/[slug].page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ import { injectContent, MarkdownComponent } from '@analogjs/content';
import { AsyncPipe, CommonModule } from '@angular/common';

import PostAttributes from '../../post-attributes';
import { RouteMeta } from '@analogjs/router';

export const routeMeta: RouteMeta = {
meta: [
{
property: 'og:title',
content: 'Race Element - Guides',
},
],
};

@Component({
selector: 'app-guides-post',
Expand Down
9 changes: 9 additions & 0 deletions src/app/pages/guide/index.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@ import { injectContentFiles } from '@analogjs/content';
import PostAttributes from '../../post-attributes';
import { Route, RouterLink } from '@angular/router';
import { CommonModule } from '@angular/common';
import { RouteMeta } from '@analogjs/router';

export const routeMeta: RouteMeta = {
meta: [
{
property: 'og:title',
content: 'Race Element - Guides',
},
],
};

@Component({
selector: 'app-guides',
Expand Down
9 changes: 9 additions & 0 deletions src/app/pages/news/[slug].page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@ import { injectContent, MarkdownComponent } from '@analogjs/content';
import { AsyncPipe, CommonModule } from '@angular/common';

import PostAttributes from '../../post-attributes';
import { RouteMeta } from '@analogjs/router';

export const routeMeta: RouteMeta = {
meta: [
{
property: 'og:title',
content: 'Race Element - News',
}
],
};
@Component({
selector: 'app-news-post',
standalone: true,
Expand Down
10 changes: 10 additions & 0 deletions src/app/pages/news/index.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ import { injectContentFiles } from '@analogjs/content';
import PostAttributes from '../../post-attributes';
import { RouterLink } from '@angular/router';
import { CommonModule } from '@angular/common';
import { RouteMeta } from '@analogjs/router';

export const routeMeta: RouteMeta = {
meta: [
{
property: 'og:title',
content: 'Race Element - News',
},
],
};

@Component({
selector: 'app-news',
Expand Down

0 comments on commit 53cf71f

Please sign in to comment.