writers

package
v0.0.0-...-faaa73c Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFeeds

func WriteFeeds(cfg *config.Configuration, items *collection.Collection[models.Post]) error

func WriteFile

func WriteFile[F models.Fileable](file F) error

WriteFile

func WriteFileCollection

func WriteFileCollection[F models.Fileable](files *collection.Collection[F]) error

WriteFileCollection

func WriteHtml

func WriteHtml(basePath string, mapping *config.Mapping, cfg *config.Configuration, data ...template.TemplateData) error

WriteHtml

func WriteHtmlCollection

func WriteHtmlCollection[B models.Bloggable](basePath string, items *collection.Collection[B], mapping *config.Mapping, cfg *config.Configuration, data ...template.TemplateData) error

WriteHtmlCollection

func WriteJsonCollection

func WriteJsonCollection[B models.Bloggable](basePath string, items *collection.Collection[B]) error

func WriteJsonManifest

func WriteJsonManifest[B models.Bloggable](basePath string, items *collection.Collection[B]) error

Types

type Sitemap

type Sitemap struct {
	UrlSet []SitemapUrl
}

func NewSitemap

func NewSitemap() *Sitemap

func (*Sitemap) AddUrl

func (s *Sitemap) AddUrl(url string, lastMod string)

func (Sitemap) Save

func (s Sitemap) Save(path string) error

func (Sitemap) UpsertRobots

func (s Sitemap) UpsertRobots(cfg *config.Configuration) error

type SitemapUrl

type SitemapUrl struct {
	Loc     string
	LastMod string
}

Jump to

Keyboard shortcuts

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