Documentation
¶
Overview ¶
Package plugins holds emulated Jekyll plugins.
Unlike Jekyll, these are baked into the executable -- both because package "plugin' works only on Linux (as of 2017.07); and because the jigyll implementation is immature and any possible interfaces are far from baked.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin interface {
AfterInitSite(Site) error
ConfigureTemplateEngine(*liquid.Engine) error
ModifyPluginList([]string) []string
ModifySiteDrop(Site, map[string]interface{}) error
PostInitPage(Site, Page) error
PostReadSite(Site) error
PostRender([]byte) ([]byte, error)
}
Plugin describes the hooks that a plugin can override.
type Site ¶
type Site interface {
AddHTMLPage(url string, tpl string, fm pages.FrontMatter)
RemoveRoute(url string)
Config() *config.Config
TemplateEngine() *liquid.Engine
Pages() []Page
Posts() []Page
HasLayout(string) bool
HasRoute(string) bool
}
Site is the site interface that is available to plugins.
Click to show internal directories.
Click to hide internal directories.