syndicate

package
v0.0.0-...-72c21ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedConfig

type FeedConfig struct {
	AtomPath string
	JsonPath string
	RssPath  string

	Title       string
	Url         string
	Description string
	AuthorName  string
	AuthorEmail string
	Updated     time.Time
	Created     time.Time
	Id          string
	Subtitle    string
	Copyright   string
	ImageUrl    string
	ImageTitle  string
	ImageWidth  int
	ImageHeight int

	ItemConfig ItemConfig
}

type ItemConfig

type ItemConfig struct {
	TitleKey        string
	AuthorNameKey   string
	AuthorEmailKey  string
	DescriptionKey  string
	IdKey           string
	UpdatedKey      string
	CreatedKey      string
	ContentKey      string
	ContentFromFile bool
}

type Syndicate

type Syndicate struct {
	// contains filtered or unexported fields
}

Syndicate chainable context.

func New

func New(baseUrl, feedNameKey string) *Syndicate

New creates a new instance of the Syndicate plugin

func (*Syndicate) Finalize

func (self *Syndicate) Finalize(context *goldsmith.Context) error

func (*Syndicate) Name

func (*Syndicate) Name() string

func (*Syndicate) Process

func (self *Syndicate) Process(context *goldsmith.Context, inputFile *goldsmith.File) error

func (*Syndicate) WithFeed

func (self *Syndicate) WithFeed(name string, config FeedConfig) *Syndicate

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL