hugo: Index | Files

package create

import ""

Package create provides functions to create new content.


Package Files


func FindArchetype Uses

func FindArchetype(s *hugolib.Site, kind string) (outpath string)

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 Uses

func NewContent(s *hugolib.Site, kind, name string) (err error)

NewContent creates a new content file in the content directory based upon the given kind, which is used to lookup an archetype.

Package create imports 12 packages (graph) and is imported by 76 packages. Updated 2017-03-25. Refresh now. Tools for package owners.