engine

package
v0.0.0-...-229c649 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Spew

func Spew() (err error)

Spew generates website

func SpewArchive

func SpewArchive(posts []*Post, templates *Templates) error

SpewArchive generate site posts archive

func SpewAtom

func SpewAtom(posts []*Post) error

SpewAtom generate Atom feed from posts

Types

type Post

type Post struct {
	Title        string
	Subtitle     string
	Summary      string
	Date         string
	ShortDate    string
	Content      template.HTML
	Permalink    template.URL
	PermalinkURL string
	ImageURL     string
	IsPublish    bool
	IsIndex      bool
	Prev         *Post
	// contains filtered or unexported fields
}

Post post meta data

func SpewPosts

func SpewPosts(templates *Templates) ([]*Post, error)

SpewPosts generate site posts

type Templates

type Templates struct {
	Header  *template.Template
	Footer  *template.Template
	Post    *template.Template
	Archive *template.Template
}

Templates website html templates

Jump to

Keyboard shortcuts

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