Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderMarkdown ¶
func SetMetadataProcessor ¶
func SetMetadataProcessor(f MetadataProcessor)
Types ¶
type ContentItem ¶
type ContentItem struct { Filename string FullPath string Url string Type ContentType Content template.HTML Children []*ContentItem Metadata Metadata Extra interface{} }
func (*ContentItem) Parse ¶
func (c *ContentItem) Parse(filename string)
func (*ContentItem) Process ¶
func (c *ContentItem) Process()
func (*ContentItem) Write ¶
func (c *ContentItem) Write(path string, queue *ContentQueue)
func (*ContentItem) WriteContent ¶
func (c *ContentItem) WriteContent(path string) error
type ContentQueue ¶
type ContentQueue struct {
// contains filtered or unexported fields
}
func NewContentQueue ¶
func NewContentQueue() *ContentQueue
func (*ContentQueue) Insert ¶
func (c *ContentQueue) Insert(i *ContentItem) *ContentQueueItem
func (*ContentQueue) Wait ¶
func (c *ContentQueue) Wait()
type ContentQueueItem ¶
type ContentQueueItem struct { Result chan bool // contains filtered or unexported fields }
type Metadata ¶
func (*Metadata) UnmarshalYAML ¶
Time handling
type MetadataProcessor ¶
type MetadataProcessor func(item *ContentItem) (interface{}, error)
Metadata processing
Click to show internal directories.
Click to hide internal directories.