Documentation
¶
Index ¶
- func CommonLi() string
- func Digest(ctx context.Context, post *models.Posts, limit int)
- func Digests(content string, id uint64, limit int, ...) string
- func FormatComments(c *gin.Context, i CommentHtml, comments []models.Comments, maxDepth int) string
- func FormatLi(li string, comments models.Comments, respond RespondFn, ...) string
- func Gravatar(email string, isTls bool) (u string)
- func InitDigestCache()
- func ParseDigestConf(c DigestConfig) map[string]digest.SpecialSolveConf
- func PostExcerpt(post *models.Posts)
- func PostsMore(id uint64, content, closeTag string) string
- func RemoveWpBlock(s string) string
- type CommentHandler
- type CommentHtml
- type CommentPageEle
- func (p CommentPageEle) Current(page, totalPage, totalRow int) string
- func (p CommentPageEle) Dots() string
- func (p CommentPageEle) Middle(page int, url string) string
- func (p CommentPageEle) Next(url string) string
- func (p CommentPageEle) Prev(url string) string
- func (p CommentPageEle) Urls(u url.URL, page int, isTLS bool) string
- type Comments
- type CommonCommentFormat
- type DigestConfig
- type PageEle
- type PaginationNav
- func (p PaginationNav) Current(page, totalPage, totalRows int) string
- func (p PaginationNav) Dots() string
- func (p PaginationNav) Middle(page int, url string) string
- func (p PaginationNav) Next(url string) string
- func (p PaginationNav) Prev(url string) string
- func (p PaginationNav) Urls(u url.URL, page int, isTLS bool) string
- type RespondFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatComments ¶
func InitDigestCache ¶
func InitDigestCache()
func ParseDigestConf ¶
func ParseDigestConf(c DigestConfig) map[string]digest.SpecialSolveConf
func PostExcerpt ¶
func RemoveWpBlock ¶
Types ¶
type CommentHandler ¶
type CommentHtml ¶
type CommentPageEle ¶
type CommentPageEle struct {
PageEle
}
func TwentyFifteenCommentPagination ¶
func TwentyFifteenCommentPagination() CommentPageEle
func (CommentPageEle) Current ¶
func (p CommentPageEle) Current(page, totalPage, totalRow int) string
func (CommentPageEle) Dots ¶
func (p CommentPageEle) Dots() string
func (CommentPageEle) Next ¶
func (p CommentPageEle) Next(url string) string
func (CommentPageEle) Prev ¶
func (p CommentPageEle) Prev(url string) string
type CommonCommentFormat ¶
type CommonCommentFormat struct { }
func CommentRender ¶
func CommentRender() CommonCommentFormat
func (CommonCommentFormat) FloorOrder ¶
func (c CommonCommentFormat) FloorOrder(i, j models.Comments) bool
type DigestConfig ¶
type DigestConfig struct { DigestWordCount int `yaml:"digestWordCount"` DigestAllowTag string `yaml:"digestAllowTag"` DigestRegex string `yaml:"digestRegex"` DigestTagOccupyNum []struct { Tag string `yaml:"tag"` Num int `yaml:"num"` ChuckOvered bool `yaml:"chuckOvered"` EscapeCharacter []struct { Tags string `yaml:"tags"` Character []string `yaml:"character"` Num int `yaml:"num"` ChuckOvered bool `yaml:"chuckOvered"` } `yaml:"escapeCharacter"` } `yaml:"digestTagOccupyNum"` // contains filtered or unexported fields }
type PageEle ¶
type PageEle struct { PrevEle string NextEle string DotsEle string MiddleEle string CurrentEle string }
func TwentyFifteenPagination ¶
func TwentyFifteenPagination() PageEle
type PaginationNav ¶
type PaginationNav struct {}
func (PaginationNav) Current ¶
func (p PaginationNav) Current(page, totalPage, totalRows int) string
func (PaginationNav) Dots ¶
func (p PaginationNav) Dots() string
func (PaginationNav) Next ¶
func (p PaginationNav) Next(url string) string
func (PaginationNav) Prev ¶
func (p PaginationNav) Prev(url string) string
Click to show internal directories.
Click to hide internal directories.