package create

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

Package create provides functions to create new content.

Index

Functions

func FindArchetype

func FindArchetype(fs afero.Fs, 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(fs afero.Fs, 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.18.1
Published
Dec 29, 2016
Platform
windows/amd64
Imports
14 packages
Last checked
31 seconds ago

Tools for package owners.