Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Post ¶
type Post struct { ID string `schema:"id,required"` Title string Content string ContentPreview string CustomFields map[string]interface{} Slug string IsDraft bool Published bool ItemType string Template string CreatedAt time.Time UpdatedAt time.Time }
Post contains articles and pages used by the CMS
func (*Post) GetContentPreview ¶
GetContentPreview strips markdown from the content string, trims and returns it
func (*Post) GetHTMLContent ¶
GetHTMLContent returns the post's markdown content as HTML
Click to show internal directories.
Click to hide internal directories.