Documentation ¶
Index ¶
- func NewID(slug string, t time.Time) string
- func NewSlug() string
- type Entry
- func (e *Entry) Audience() []string
- func (e *Entry) DisplayDescription() string
- func (e *Entry) DisplayTitle() string
- func (e *Entry) Excerpt() string
- 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) Tags() []string
- func (e *Entry) TextContent() string
- func (e *Entry) Update(newProps map[string][]interface{}) error
- func (e *Entry) Visibility() Visibility
- type Frontmatter
- type Parser
- type Read
- type ReadList
- type ReadsByYear
- type ReadsSummary
- type Visibility
- type Watch
- type WatchesSummary
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) DisplayDescription ¶
func (*Entry) DisplayTitle ¶
func (*Entry) Helper ¶
func (e *Entry) Helper() *mf2.FlatHelper
func (*Entry) TextContent ¶
func (*Entry) Visibility ¶
func (e *Entry) Visibility() Visibility
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"` 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"` IsListing bool `yaml:"isListing,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. }
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
type ReadList ¶
type ReadList []*Read
func (ReadList) ByYear ¶
func (rd ReadList) ByYear() *ReadsByYear
func (ReadList) SortByName ¶
func (rd ReadList) SortByName()
type ReadsByYear ¶
type ReadsSummary ¶
type ReadsSummary struct { ToRead ReadList `json:"to-read"` Reading ReadList `json:"reading"` Finished ReadsByYear `json:"finished"` }
type Visibility ¶
type Visibility string
const ( VisibilityPrivate Visibility = "private" VisibilityUnlisted Visibility = "unlisted" VisibilityPublic Visibility = "public" )
type WatchesSummary ¶
Click to show internal directories.
Click to hide internal directories.