Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BPost ¶
type BPost struct { Title string `json:"title"` Description string `json:"description"` Author string `json:"author"` UrlPermalink string `json:"url"` DateCreated time.Time `json:"date_created"` DateEdited time.Time `json:"date_edited"` ContentMarkdown string `json:"content_markdown"` ContentHtml template.HTML `json:"content_html"` }
func FromMarkdown ¶
FromMarkdown reads a post folder (that follows our special structure) and creates a new post structure with fields filled from the file loaded.
func (*BPost) FormattedCreatedTime ¶
func (*BPost) FormattedCreatedTimeLong ¶
func (*BPost) FormattedEditedTimeLong ¶
func (*BPost) HTML5CreatedTime ¶
Click to show internal directories.
Click to hide internal directories.