Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Author ¶
type Author struct { Username string `json:"username"` Name string `json:"name"` Tagline string `json:"tagLine"` Photo string `json:"photo"` SocialMedia struct { Twitter string `json:"twitter"` Github string `json:"github"` Stackoverflow string `json:"stackoverflow"` Linkedin string `json:"linkedin"` Google string `json:"google"` Website string `json:"website"` Facebook string `json:"facebook"` } `json:"socialMedia"` }
func (Author) GetDateUpdated ¶
func (*Author) ReplaceImagePaths ¶
func (a *Author) ReplaceImagePaths(cfg *config.Configuration)
type Bloggable ¶
type Bloggable interface { GetSlug() string GetImages(*config.Configuration) []Image GetDateUpdated() string GetUrl(*config.Configuration) string }
type Post ¶
type Post struct { Title string `json:"title"` Slug string `json:"slug"` DateAdded string `json:"dateAdded"` DateUpdated string `json:"dateUpdated"` CUID string `json:"cuid"` Type string `json:"type"` Content string `json:"content"` Brief string `json:"brief"` CoverImage string `json:"coverImage"` Tags []Tag `json:"tags,omitempty"` Author *Author }
func (Post) GetDateUpdated ¶
func (*Post) ReplaceImagePaths ¶
func (p *Post) ReplaceImagePaths(cfg *config.Configuration)
Click to show internal directories.
Click to hide internal directories.