Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
StaticList = []string{
"config.toml",
"public_key.asc",
}
)
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Collection struct {
Posts []*Post
Pages []*Post
StaticFiles []string
Tags mapset.Set[string]
// contains filtered or unexported fields
}
func NewContentCollection ¶
func NewContentCollection(config *Config, log *log.Logger) (*Collection, error)
func (*Collection) HandleFile ¶
func (cc *Collection) HandleFile(filename string, d fs.DirEntry) error
type Config ¶
type Config struct {
Root string
PostDir string
Repo *vcs.Repository
StaticFiles []string
}
type Post ¶
type Post struct {
Input string
Basename string
URL string
Commits []*vcs.Commit
*PostMatter
// contains filtered or unexported fields
}
func (*Post) RenderString ¶
Click to show internal directories.
Click to hide internal directories.