Documentation ¶
Index ¶
- func GetBlogName(username string) string
- func GetPostTitle(post *db.Post) string
- func NewConfigSite() *shared.ConfigSite
- func StartApiServer()
- type BlogPageData
- type HeaderTxt
- type IImgsAPI
- type ImgHandler
- type ImgsLinkify
- type Link
- type PageData
- type PostItemData
- type PostPageData
- type ReadmeTxt
- type TransparencyPageData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlogName ¶
func GetPostTitle ¶
func NewConfigSite ¶
func NewConfigSite() *shared.ConfigSite
func StartApiServer ¶
func StartApiServer()
Types ¶
type BlogPageData ¶
type ImgHandler ¶
type ImgsLinkify ¶
type ImgsLinkify struct { Cfg *shared.ConfigSite Username string OnSubdomain bool WithUsername bool }
func NewImgsLinkify ¶
func NewImgsLinkify(username string) *ImgsLinkify
func (*ImgsLinkify) Create ¶
func (i *ImgsLinkify) Create(fname string) string
type PageData ¶
type PageData struct {
Site shared.SitePageData
}
type PostItemData ¶
type PostPageData ¶
type PostPageData struct { Site shared.SitePageData PageTitle string URL template.URL BlogURL template.URL Slug string Title string Caption string Contents template.HTML Text string Username string BlogName string PublishAtISO string PublishAt string Tags []Link ImgURL template.URL PrevPage template.URL NextPage template.URL }
type TransparencyPageData ¶
type TransparencyPageData struct { Site shared.SitePageData Analytics *db.Analytics }
Click to show internal directories.
Click to hide internal directories.