hugo: github.com/spf13/hugo/create Index | Files

package create

import "github.com/spf13/hugo/create"

Package create provides functions to create new content.

Index

Package Files

content.go

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.