package create

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

Package create provides functions to create new content.

Index

Functions

func FindArchetype

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

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.

Source Files

content.go

Version
v0.20.5
Published
Apr 25, 2017
Platform
darwin/amd64
Imports
12 packages
Last checked
31 minutes ago

Tools for package owners.