Documentation
¶
Index ¶
- func GetBlogName(username string) string
- func GetPostTitle(post *db.Post) string
- func NewConfigSite() *shared.ConfigSite
- func StartApiServer()
- func StartSshServer()
- type BlogPageData
- type HeaderTxt
- type MarkdownHooks
- type PageData
- type PostItemData
- type PostPageData
- type ReadPageData
- type ReadmeTxt
- type SSHServer
- 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()
func StartSshServer ¶ added in v1.8.1
func StartSshServer()
Types ¶
type BlogPageData ¶
type MarkdownHooks ¶
type MarkdownHooks struct {
Cfg *shared.ConfigSite
Db db.DB
}
func (*MarkdownHooks) FileMeta ¶
func (p *MarkdownHooks) FileMeta(s ssh.Session, data *filehandlers.PostMetaData) error
func (*MarkdownHooks) FileValidate ¶
func (p *MarkdownHooks) FileValidate(s ssh.Session, data *filehandlers.PostMetaData) (bool, error)
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
BlogName string
Slug string
Title string
Description string
Username string
Contents template.HTML
PublishAtISO string
PublishAt string
HasCSS bool
CssURL template.URL
Tags []string
Image template.URL
ImageCard string
Favicon template.URL
Unlisted bool
}
type ReadPageData ¶
type ReadPageData struct {
Site shared.SitePageData
NextPage string
PrevPage string
Posts []PostItemData
Tags []string
HasFilter bool
}
type TransparencyPageData ¶
type TransparencyPageData struct {
Site shared.SitePageData
Analytics *db.Analytics
}
Click to show internal directories.
Click to hide internal directories.