mirror of
https://github.com/danog/gojekyll.git
synced 2024-12-12 11:57:20 +01:00
29 lines
542 B
Go
29 lines
542 B
Go
package pages
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/osteele/gojekyll/config"
|
|
"github.com/osteele/gojekyll/pipelines"
|
|
)
|
|
|
|
// A Document is a Jekyll post, page, or file.
|
|
type Document interface {
|
|
// Paths
|
|
Permalink() string // relative URL path
|
|
SourcePath() string
|
|
OutputExt() string
|
|
|
|
// Output
|
|
Published() bool
|
|
Static() bool
|
|
Write(io.Writer) error
|
|
}
|
|
|
|
// Site is the interface that the site provides to a page.
|
|
type Site interface {
|
|
Config() *config.Config
|
|
RenderingPipeline() pipelines.PipelineInterface
|
|
OutputExt(pathname string) string
|
|
}
|