( post: PostMarkdownPost, )
| 180 | `; |
| 181 | |
| 182 | export const getSimilarPostsVariables = ( |
| 183 | post: PostMarkdownPost, |
| 184 | ): { post: string; tags: string[]; first: number } => ({ |
| 185 | post: post.id, |
| 186 | tags: post.tags ?? [], |
| 187 | first: SIMILAR_POSTS_COUNT, |
| 188 | }); |
| 189 | |
| 190 | const yaml = (value: string): string => JSON.stringify(value); |
| 191 |