Documentation ¶
Overview ¶
Package layout transforms content by applying Go templates to the content and metadata of HTML files. This plugin can be easily used with the "frontmatter" and "markdown" plugins to generate easy to maintain content-driven websites that are completely decoupled from layout details.
Index ¶
- type Layout
- func (self *Layout) ContentKey(key string) *Layout
- func (self *Layout) DefaultLayout(name string) *Layout
- func (self *Layout) Finalize(context *goldsmith.Context) error
- func (self *Layout) Helpers(helpers template.FuncMap) *Layout
- func (self *Layout) Initialize(context *goldsmith.Context) error
- func (self *Layout) LayoutKey(key string) *Layout
- func (*Layout) Name() string
- func (self *Layout) Process(context *goldsmith.Context, inputFile *goldsmith.File) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layout ¶
type Layout struct {
// contains filtered or unexported fields
}
Layout chainable context.
func (*Layout) ContentKey ¶
ContentKey sets the metadata key used to access the source content (default: "Content").
func (*Layout) DefaultLayout ¶
DefaultLayout sets the name of the layout to use if none is specified.
Click to show internal directories.
Click to hide internal directories.