RustyCMS: File-based headless CMS with REST API, admin UI, multilingual support
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
27
@types/Contentful_Post.ts
Normal file
27
@types/Contentful_Post.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import type { CF_ContentType } from "src/@types/Contentful_ContentType.enum";
|
||||
import type { CF_ComponentImgSkeleton } from "./Contentful_Img";
|
||||
import type { CF_Content } from "./Contentful_Content";
|
||||
import type { CF_SEO } from "./Contentful_SEO";
|
||||
import type { CF_TagSkeleton } from "./Contentful_Tag";
|
||||
|
||||
export interface CF_Post extends CF_Content, CF_SEO {
|
||||
postImage: CF_ComponentImgSkeleton;
|
||||
postTag: CF_TagSkeleton[];
|
||||
slug: string;
|
||||
linkName: string;
|
||||
icon?: string;
|
||||
headline: string;
|
||||
important: boolean;
|
||||
created: string;
|
||||
date?: string;
|
||||
subheadline: string;
|
||||
excerpt: string;
|
||||
content: string;
|
||||
/** Show comment section (default: true) */
|
||||
showCommentSection?: boolean;
|
||||
}
|
||||
|
||||
export type CF_PostEntrySkeleton = {
|
||||
contentTypeId: CF_ContentType.post;
|
||||
fields: CF_Post;
|
||||
};
|
||||
Reference in New Issue
Block a user