1
0
mirror of https://github.com/danog/gojekyll.git synced 2024-11-26 19:34:52 +01:00
gojekyll/pages/document.go

31 lines
535 B
Go

package pages
import (
"io"
"github.com/danog/gojekyll/config"
"github.com/danog/gojekyll/renderers"
)
// A Document is a Jekyll post, page, or file.
type Document interface {
// Paths
URL() string // relative to site base
Source() string
OutputExt() string
// Output
Published() bool
IsStatic() bool
Write(io.Writer) error
Reload() error
}
// Site is the interface that the site provides to a page.
type Site interface {
Config() *config.Config
RelativePath(string) string
RendererManager() renderers.Renderers
}