Skip to content

Commit

Permalink
fix sitemap generation for news and guide posts
Browse files Browse the repository at this point in the history
  • Loading branch information
RiddleTime committed Jun 19, 2024
1 parent da4c6e8 commit 6889b7b
Show file tree
Hide file tree
Showing 17 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/app/pages/guide/[slug].page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ import { Meta } from '@angular/platform-browser';
encapsulation: ViewEncapsulation.None,
})
export default class GuideSlugComponent implements OnInit {
readonly post = injectContent<PostAttributes>('slug');
readonly post = injectContent<PostAttributes>({
param: 'slug',
subdirectory: 'guide',
});

constructor(private meta: Meta) {}

Expand Down
5 changes: 4 additions & 1 deletion src/app/pages/news/[slug].page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ import { Meta } from '@angular/platform-browser';
encapsulation: ViewEncapsulation.None,
})
export default class NewsSlugComponent implements OnInit{
readonly post = injectContent<PostAttributes>();
readonly post = injectContent<PostAttributes>({
param: 'slug',
subdirectory: 'news',
});

constructor(private meta: Meta) {}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6889b7b

Please sign in to comment.