Documentation ¶
Index ¶
- func Compile()
- func CompileAbout()
- func CompileArchive()
- func CompileArticle()
- func CompileCatePage()
- func CompileCategory()
- func CompileHome()
- func CompileTag()
- func CompileTagPage()
- func CrearteMark(filename string) string
- func CreatePostLink(art *Article) string
- func Exist(filename string) bool
- func GetCate() map[string]*Category
- func GetTag() map[string]*Tag
- func Initialize()
- func ListenHttpServer(port int)
- func LoadArticle()
- func Marklist() (mdlist []string)
- func ReadMuCtx(path string) (ctx *mustring, err error)
- type Article
- type Articles
- type Category
- type CollatedMonth
- type CollatedMonths
- type CollatedYear
- type CollatedYears
- type FileHandler
- type Tag
- type Watch
- type Website
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CrearteMark ¶
func Initialize ¶
func Initialize()
func ListenHttpServer ¶
func ListenHttpServer(port int)
func LoadArticle ¶
func LoadArticle()
Types ¶
type Article ¶
type Article struct { Id int `json:"id"` Title string `json:"title"` Description string `json:"description"` Content string `json:"content"` Summary string `json:"summary"` Tags []string `json:"tags"` Category []string `json:"cate"` CreatedAt int64 `json:"created_at"` UpdatedAt int64 `json:"updated_at"` Url string `json:"url"` }
type CollatedMonth ¶
type CollatedMonths ¶
type CollatedMonths []*CollatedMonth
func (CollatedMonths) Len ¶
func (c CollatedMonths) Len() int
func (CollatedMonths) Less ¶
func (c CollatedMonths) Less(i, j int) bool
func (CollatedMonths) Swap ¶
func (c CollatedMonths) Swap(i, j int)
type CollatedYear ¶
type CollatedYear struct { Year string `json:"year"` Months []*CollatedMonth `json:"months"` // contains filtered or unexported fields }
type CollatedYears ¶
type CollatedYears []*CollatedYear
func (CollatedYears) Len ¶
func (c CollatedYears) Len() int
func (CollatedYears) Less ¶
func (c CollatedYears) Less(i, j int) bool
func (CollatedYears) Swap ¶
func (c CollatedYears) Swap(i, j int)
type FileHandler ¶
type FileHandler struct {
// contains filtered or unexported fields
}
func (*FileHandler) Http ¶
func (fh *FileHandler) Http()
type Website ¶
type Website struct { Title string `yaml:"title"` SubTitle string `yaml:"subtitle"` Description string `yaml:"description"` Keywords string `yaml:"keywords"` SummaryLine int `yaml:"summary_line"` HomeArtNum int `yaml:"home_art_num"` Theme string `yaml:"theme"` Markdown string `yaml:"markdown"` Html string `yaml:"html"` Storage string `yaml:"storage"` Author string `yaml:"name"` Avatar string `yaml:"avatar"` Github string `yaml:"github"` Weibo string `yaml:"weibo"` Mail string `yaml:"mail"` Zhihu string `yaml:"zhihu"` Paths []string `yaml:"paths"` Exts []string `yaml:"exts"` UploadTheme string `yaml:"upload_theme,omitempty"` HomeTitle string `yaml:"home_title,omitempty"` ArchiveTitle string `yaml:"archive_title,omitempty"` TagTitle string `yaml:"tag_title,omitempty"` CateTitle string `yaml:"cate_title,omitempty"` AboutTitle string `yaml:"about_title,omitempty"` ArticleTitle string `yaml:"article_title,omitempty"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.