Documentation
¶
Overview ¶
Package data 对加载的数据进行二次加工
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Archive ¶
type Archive struct {
Title string // 当前存档页的标题
Posts []*Post // 当前存档的文章列表
// contains filtered or unexported fields
}
Archive 单个存档项
type Archives ¶
type Archives struct {
Title string
Permalink string
Keywords string
Description string
Archives []*Archive
}
Archives 存档的相关信息
type Data ¶
type Data struct {
URL string
Title string
Subtitle string
TitleSuffix string // 每篇文章标题的后缀
Icon *loader.Icon
Language string
Author *loader.Author
License *loader.Link
Theme *Theme
Highlights []*Highlight
Menus []*loader.Link
RSS *RSS
Atom *RSS
Sitemap *Sitemap
Robots *Robots
Profile *Profile
Uptime time.Time
Created time.Time
Modified time.Time
Builded time.Time // 最后次编译时间
Tags *Tags
Posts []*Post
Indexes []*Index
Archives *Archives
}
Data 处理后的数据
type Index ¶
type Index struct {
Title string
Permalink string
Keywords string
Description string
Posts []*Post
Index int // 当前页的索引
Path string
Next *Index
Prev *Index
}
Index 索引页内容
type Post ¶
type Post struct {
Permalink string
Slug string
Path string
Title string
Created time.Time
Modified time.Time
Tags []*Tag
Language string
Authors []*loader.Author
License *loader.Link
Keywords string
Summary string
Content string
Image string
Prev *Post
Next *Post
Template string
JSONLD string
TOC []loader.Header
// contains filtered or unexported fields
}
Post 文章详情
type Tag ¶
type Tag struct {
Permalink string
Slug string
Path string
Title string
Keywords string
Content string // 对该标签的详细描述
Posts []*Post
Prev *Tag
Next *Tag
Created time.Time
Modified time.Time
}
Tag 单个标签的内容
Click to show internal directories.
Click to hide internal directories.