Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrefixLinks ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GenerateImageLinks ¶
type FrontMatter ¶
type FrontMatter struct {
Title string `yaml:"title,omitempty"`
Published *bool `yaml:"published,omitempty"`
Description string `yaml:"description,omitempty"`
Tags string `yaml:"tags,omitempty"`
CanonicalURL string `yaml:"canonical_url,omitempty" mapstructure:"canonical_url"`
CoverImage string `yaml:"cover_image,omitempty" mapstructure:"cover_image"`
Series string `yaml:"series,omitempty"`
}
FrontMatter as described in https://dev.to/p/editor_guide
type Parsed ¶
type Parsed struct {
// contains filtered or unexported fields
}
func Parse ¶
Parse parses the article and divides the content into front matter and markdown. Heavily inspired by: https://github.com/gohugoio/hugo/blob/94cfdf6befd657e46c9458b23f17d851cd2f7037/commands/convert.go#L207-L250
Click to show internal directories.
Click to hide internal directories.