Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blog/sections/Template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ export const loader = (props: Props, _req: Request, ctx: AppContext) => {
...props,
pageSlug: ctx.pageSlug,
};
};
};
14 changes: 14 additions & 0 deletions blog/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ export interface Author {
export interface Category {
name: string;
slug: string;
/**
Comment thread
pedrophzp marked this conversation as resolved.
* @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 {
Expand Down Expand Up @@ -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
Expand Down