Documentation
¶
Index ¶
- func GetBlogName(username string) string
- func GetPostTitle(post *db.Post) string
- func KeyAsValue(token *SplitToken) string
- func NewConfigSite() *shared.ConfigSite
- func PublishAtDate(date string) (*time.Time, error)
- func SplitByNewline(text string) []string
- func StartApiServer()
- func TokenToMetaField(meta *MetaData, token *SplitToken)
- type BlogPageData
- type HeaderTxt
- type ListHooks
- type ListItem
- type MetaData
- type ParsedText
- type PostItemData
- type PostPageData
- type ReadPageData
- type ReadmeTxt
- type SplitToken
- type TransparencyPageData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlogName ¶
func GetPostTitle ¶
func KeyAsValue ¶
func KeyAsValue(token *SplitToken) string
func NewConfigSite ¶
func NewConfigSite() *shared.ConfigSite
func SplitByNewline ¶
func StartApiServer ¶
func StartApiServer()
func TokenToMetaField ¶
func TokenToMetaField(meta *MetaData, token *SplitToken)
Types ¶
type BlogPageData ¶
type ListHooks ¶
type ListHooks struct {
Cfg *shared.ConfigSite
Db db.DB
}
func (*ListHooks) FileMeta ¶
func (p *ListHooks) FileMeta(data *filehandlers.PostMetaData) error
func (*ListHooks) FileValidate ¶
func (p *ListHooks) FileValidate(data *filehandlers.PostMetaData) (bool, error)
type ParsedText ¶
type PostItemData ¶
type PostPageData ¶
type ReadPageData ¶
type ReadPageData struct {
Site shared.SitePageData
NextPage string
PrevPage string
Posts []PostItemData
Tags []string
HasFilter bool
}
type SplitToken ¶
func TextToSplitToken ¶
func TextToSplitToken(text string) *SplitToken
type TransparencyPageData ¶
type TransparencyPageData struct {
Site shared.SitePageData
Analytics *db.Analytics
}
Click to show internal directories.
Click to hide internal directories.