1
0
mirror of https://github.com/danog/gojekyll.git synced 2025-01-07 18:08:18 +01:00
gojekyll/pages/document.go

31 lines
539 B
Go
Raw Normal View History

package pages
import (
"io"
2017-07-07 01:31:36 +02:00
"github.com/osteele/gojekyll/config"
2017-08-18 17:07:01 +02:00
"github.com/osteele/gojekyll/renderers"
)
2017-07-09 01:57:41 +02:00
// A Document is a Jekyll post, page, or file.
type Document interface {
// Paths
2017-09-02 19:53:50 +02:00
URL() string // relative to site base
Source() string
OutputExt() string
// Output
Published() bool
2017-09-02 19:53:50 +02:00
IsStatic() bool
2017-07-10 19:23:51 +02:00
Write(io.Writer) error
2017-07-25 17:08:53 +02:00
Reload() error
}
2017-07-10 19:23:51 +02:00
// Site is the interface that the site provides to a page.
type Site interface {
2017-07-07 01:31:36 +02:00
Config() *config.Config
2017-07-24 15:32:57 +02:00
RelativePath(string) string
2017-08-18 17:07:01 +02:00
RendererManager() renderers.Renderers
}