create

package
v0.20.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package create provides functions to create new content.

Index

Constants

This section is empty.

Variables

This section is empty.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL