Documentation
¶
Overview ¶
sitemap.go fenerate aitemap.xml for site
Index ¶
- Constants
- func ClearDir(path string)
- func CopyDir(src string, dst string) (err error)
- func CopyFile(src, dst string) (err error)
- func GenArchive(posts []Post) map[string][]Post
- func SliceToMAP(sl []string) map[string]int
- func WriteFile(c []byte, file string)
- type Archive
- type Nav
- type PageNav
- type Post
- type PostNav
- type PostWarp
- type Site
- type Tag
Constants ¶
View Source
const ( PageTypeIndex = "index" PageTypeTag = "tag" PageTypeCat = "category" PageTypePost = "post" PageTypeArh = "archives" PageTypeArhIdx = "archiveIndex" )
Variables ¶
This section is empty.
Functions ¶
func GenArchive ¶
func SliceToMAP ¶
Types ¶
type Post ¶
type PostWarp ¶
type Site ¶
type Site struct {
Posts []Post
CatPosts map[string][]Post
TagPosts map[string][]Post
Archive Archive
Categories map[string]int
Tags map[string]int
Recent []Post
CurrentPage string
CurrentPageTitle string
CurrentPageIndex int
PrevPageIndex int
NextPageIndex int
CurrentPost Post
Cfg *config.Config
CopyRight string
}
Click to show internal directories.
Click to hide internal directories.