Documentation ¶
Index ¶
- func NewParser() goldmark.Markdown
- func ParseFiles(filename string) (*template.Template, error)
- func WalkPosts(f func(dirName string, file fs.DirEntry))
- type Builder
- func (builder *Builder) Dump()
- func (builder *Builder) DumpAllContentOnlyPages()
- func (builder *Builder) DumpContentOnlyPage(name string)
- func (builder *Builder) DumpPosts()
- func (builder *Builder) Freeze(tmpl string)
- func (builder *Builder) FreezeAllContentOnlyPages()
- func (builder *Builder) FreezeAssets()
- func (builder *Builder) FreezeCategory()
- func (builder *Builder) FreezeContentOnlyPage(name string)
- func (builder *Builder) FreezeContents()
- func (builder *Builder) FreezeEachCategoryPosts()
- func (builder *Builder) FreezeIndex()
- func (builder *Builder) FreezePosts(tmpl string)
- func (builder *Builder) FreezeStatic()
- func (builder *Builder) ParseMarkdown(path string) (bytes.Buffer, map[string]any, error)
- func (builder *Builder) Render()
- func (builder *Builder) RenderAllContentOnlyPages()
- func (builder *Builder) RenderAssets()
- func (builder *Builder) RenderCategory()
- func (builder *Builder) RenderContentOnlyPage(name string)
- func (builder *Builder) RenderContents()
- func (builder *Builder) RenderEachCategoryPosts()
- func (builder *Builder) RenderIndex()
- func (builder *Builder) RenderPosts()
- func (builder *Builder) Run(addr string, c rebirth.Context)
- type Counter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseFiles ¶
调用http.ParseFiles方法,附加通用模板
Types ¶
type Builder ¶
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) DumpAllContentOnlyPages ¶
func (builder *Builder) DumpAllContentOnlyPages()
func (*Builder) DumpContentOnlyPage ¶
func (*Builder) DumpPosts ¶
func (builder *Builder) DumpPosts()
读取content/posts下目录和文章,存取到builder.repo
func (*Builder) FreezeAllContentOnlyPages ¶
func (builder *Builder) FreezeAllContentOnlyPages()
静态化所有常规页面
func (*Builder) FreezeContentOnlyPage ¶
静态化常规页面
func (*Builder) FreezeEachCategoryPosts ¶
func (builder *Builder) FreezeEachCategoryPosts()
静态化每个分类下文章页面
func (*Builder) ParseMarkdown ¶
func (*Builder) RenderAllContentOnlyPages ¶
func (builder *Builder) RenderAllContentOnlyPages()
func (*Builder) RenderAssets ¶
func (builder *Builder) RenderAssets()
func (*Builder) RenderCategory ¶
func (builder *Builder) RenderCategory()
func (*Builder) RenderContentOnlyPage ¶
func (*Builder) RenderContents ¶
func (builder *Builder) RenderContents()
func (*Builder) RenderEachCategoryPosts ¶
func (builder *Builder) RenderEachCategoryPosts()
func (*Builder) RenderIndex ¶
func (builder *Builder) RenderIndex()
func (*Builder) RenderPosts ¶
func (builder *Builder) RenderPosts()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.