Versions in this module Expand all Collapse all v0 v0.2.0 Oct 26, 2021 Changes in this version + var BasicTemplates embed.FS + var SetTemplates embed.FS + var WritingTemplates embed.FS + func CopyDir(src, dst string) + func CopyFile(src, dst string) + func Mkdir(base, ext string) + func WriteWriting(website Website, writing Writinger, outputPath string, ...) + type ElementPage struct + func (s ElementPage) Name() string + func (s ElementPage) Posts() []PostWriting + func (s ElementPage) Url() string + type PostWriting struct + func NewPostWriting(post manager.Post, baseUrl string) PostWriting + func (pw PostWriting) RenderContent() string + func (pw PostWriting) RenderHeader() string + func (pw PostWriting) RenderPartialContent(n int) string + func (pw PostWriting) Url() string + type PostWritingContext struct + Website Website + Writing PostWriting + type PostsPage struct + func (p PostsPage) Empty() bool + func (p PostsPage) HasLast() bool + func (p PostsPage) HasNext() bool + func (p PostsPage) Last() PostsPage + func (p PostsPage) Next() PostsPage + func (p PostsPage) Url() string + func (p PostsPage) Writings() []PostWriting + type PostsPageContext struct + CurrentPage PostsPage + Website Website + type PostsPages []PostsPage + func NewPostsPages(postsPerPage int, posts []PostWriting, base string) PostsPages + type SetPageContext struct + ElementPage ElementPage + Website Website + type Website struct + func NewWebsite(title string, postsPerPage int, posts []manager.Post, pages []manager.Page, ...) Website + func (w *Website) SetStyle(style string) + func (w Website) Categories() []ElementPage + func (w Website) HasStyle() bool + func (w Website) License() string + func (w Website) Pages() []Writing + func (w Website) Posts() []PostWriting + func (w Website) PostsPages() PostsPages + func (w Website) Style() string + func (w Website) Title() string + type Writing struct + func NewWriting(file manager.Page, baseUrl string) Writing + func (w Writing) File() manager.Filer + func (w Writing) RenderContent() string + func (w Writing) RenderHeader() string + func (w Writing) RenderPartialContent(n int) string + func (w Writing) Url() string + type WritingContext struct + Website Website + Writing Writing + type Writinger interface + RenderContent func() string + RenderHeader func() string + RenderPartialContent func(int) string + Url func() string