page

package
v0.0.0-...-4b599c1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomPage

func CustomPage(template string, data map[string]string) *custompage

Types

type Page

type Page interface {
	Title() (string, error)
	Link(path string, pi PageInfo) (string, error)

	GenerateIndex(w io.Writer, posts []Post, pi PageInfo) error
	Generate(w io.Writer, pi PageInfo, index Page) error
	GenerateWithoutIndex(w io.Writer, pi PageInfo) error
	GenerateEmailHtml(w io.Writer, pi PageInfo) error
	GenerateEmailText(w io.Writer) error

	IsPost() bool
	AsPost(category, link string) *Post

	ToResource(
		pagepath, emailhtmlpath, emailtextpath string,
	) (sitefile.Resource, error)
}

func ParsePage

func ParsePage(path, chromastyle string) (Page, error)

func ParsePageGit

func ParsePageGit(path, gitdir, chromastyle string) (Page, error)

type PageInfo

type PageInfo interface {
	Theme() *theme.Theme
	Head() string
	Foot() string
	Root() string
	DynamicLinks() bool
}

type Post

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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