package create
import "github.com/gohugoio/hugo/create"
Package create provides functions to create new content.
Index ¶
- func FindArchetype(s *hugolib.Site, kind string) (outpath string)
- func NewContent(s *hugolib.Site, kind, name string) (err error)
Functions ¶
func FindArchetype ¶
FindArchetype takes a given kind/archetype of content and returns an output path for that archetype. If no archetype is found, an empty string is returned.
func NewContent ¶
NewContent creates a new content file in the content directory based upon the given kind, which is used to lookup an archetype.
Source Files ¶
- Version
- v0.20.5
- Published
- Apr 25, 2017
- Platform
- darwin/amd64
- Imports
- 12 packages
- Last checked
- 31 minutes ago –
Tools for package owners.