package create
import "github.com/gohugoio/hugo/create"
Package create provides functions to create new content.
Index ¶
Constants ¶
const ( // DefaultArchetypeTemplateTemplate is the template used in 'hugo new site' // and the template we use as a fall back. DefaultArchetypeTemplateTemplate = `--- title: "{{ replace .File.ContentBaseName "-" " " | title }}" date: {{ .Date }} draft: true --- ` )
Functions ¶
func NewContent ¶
NewContent creates a new content file in h (or a full bundle if the archetype is a directory) in targetPath.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
create/skeletons |
- Version
- v0.144.2 (latest)
- Published
- Feb 19, 2025
- Platform
- linux/amd64
- Imports
- 15 packages
- Last checked
- 13 hours ago –
Tools for package owners.