-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpost.tsx
51 lines (45 loc) · 886 Bytes
/
post.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import type { PortableTextBlock } from '@portabletext/types';
export enum CategoryName {
MISSING = 'Missing',
MURDERED = 'Murdered',
INDIGENOUS_WOMEN = 'Indigenous Women',
HIGHWAY_OF_TEARS = 'Highway of Tears',
MILITARY = 'Military',
}
export type Category = {
title: string;
slug: string;
};
export type Video = {
link: string;
videoCode: string;
title: string;
};
export type Podcast = {
link: string;
source: string;
title: string;
};
export type Post = {
id: string;
date: string;
title: string;
summary: string;
commentCount: number;
featuredImage: string;
category: Category;
slug: string;
content: PortableTextBlock;
howToHelp: PortableTextBlock;
digDeeper: PortableTextBlock;
copyright: string;
location: string;
year: string;
videos?: Video[];
podcasts?: Podcast[];
tags?: Tag[];
disqusId: string;
};
export type Tag = {
title: string;
};