blog

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MARKDOWN post ext
	MARKDOWN = ".md"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ByPublished

type ByPublished []Post

ByPublished sort

func (ByPublished) Len

func (p ByPublished) Len() int

func (ByPublished) Less

func (p ByPublished) Less(i, j int) bool

func (ByPublished) Swap

func (p ByPublished) Swap(i, j int)

type Engine

type Engine struct {
	I18n  *web.I18n  `inject:""`
	Cache *web.Cache `inject:""`
}

Engine engine

func (*Engine) Atom

func (p *Engine) Atom(lang string) ([]*atom.Entry, error)

Atom rss.atom

func (*Engine) Mount

func (p *Engine) Mount(rt *gin.Engine)

Mount web mount-points

func (*Engine) RegisterWorker added in v0.3.0

func (p *Engine) RegisterWorker()

RegisterWorker register worker

func (*Engine) Shell

func (p *Engine) Shell() []cli.Command

Shell shell commands

func (*Engine) Sitemap

func (p *Engine) Sitemap() ([]stm.URL, error)

Sitemap sitemap.xml.gz

type Post

type Post struct {
	Href      string    `json:"href"`
	Title     string    `json:"title"`
	Body      string    `json:"body"`
	Published time.Time `json:"published"`
}

Post post

Jump to

Keyboard shortcuts

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