diff --git a/blog/sections/Template.tsx b/blog/sections/Template.tsx index c693a50c8..11fbdc508 100644 --- a/blog/sections/Template.tsx +++ b/blog/sections/Template.tsx @@ -74,4 +74,4 @@ export const loader = (props: Props, _req: Request, ctx: AppContext) => { ...props, pageSlug: ctx.pageSlug, }; -}; +}; \ No newline at end of file diff --git a/blog/types.ts b/blog/types.ts index 53cce1fdc..ee99d3aca 100644 --- a/blog/types.ts +++ b/blog/types.ts @@ -17,6 +17,13 @@ export interface Author { export interface Category { name: string; slug: string; + /** + * @title Categoria Pai + * @description Selecione se esta categoria for uma subcategoria de outra + * @format dynamic-options + * @options apps/blog/loaders/CategoryList.ts + */ + parent?: Category; } export interface BlogPost { @@ -56,6 +63,13 @@ export interface BlogPost { * @changeable true */ sections?: Section[]; + /** + * @title Posts Relacionados + * @description Busque posts já cadastrados pelo título + * @format dynamic-options + * @options apps/blog/loaders/BlogPostList.ts + */ + relatedPosts?: BlogPost[]; /** * @title Carousel in post content * @description add a carousel in the middle of the post. Must be implemented in frontEnd