Documentation
¶
Index ¶
- func NewID(slug string, t time.Time) string
- func NewSlug() string
- type Entry
- func (e *Entry) FlatMF2() map[string]interface{}
- func (e *Entry) Helper() *mf2.FlatHelper
- func (e *Entry) InSection(section string) bool
- func (e *Entry) MF2() map[string]interface{}
- func (e *Entry) String() (string, error)
- func (e *Entry) Summary() string
- func (e *Entry) Tags() []string
- func (e *Entry) TextContent() string
- func (e *Entry) Update(mf2Data map[string][]interface{}) error
- type Frontmatter
- type Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry struct {
Frontmatter
ID string
Permalink string
Content string
// contains filtered or unexported fields
}
func (*Entry) Helper ¶
func (e *Entry) Helper() *mf2.FlatHelper
func (*Entry) TextContent ¶
type Frontmatter ¶
type Frontmatter struct {
Title string `yaml:"title,omitempty"`
Description string `yaml:"description,omitempty"`
Draft bool `yaml:"draft,omitempty"`
Deleted bool `yaml:"deleted,omitempty"`
Private bool `yaml:"private,omitempty"`
Published time.Time `yaml:"published,omitempty"`
Updated time.Time `yaml:"updated,omitempty"`
Sections []string `yaml:"section,omitempty"`
Template string `yaml:"template,omitempty"`
CreatedWith string `yaml:"createdWith,omitempty"`
NoShowInteractions bool `yaml:"noShowInteractions,omitempty"`
NoSendInteractions bool `yaml:"noSendInteractions,omitempty"`
PhotoClass string `yaml:"photoClass,omitempty"`
Properties map[string]interface{} `yaml:"properties,omitempty"` // "Flat" MF2 Properties.
}
Click to show internal directories.
Click to hide internal directories.