Debian Codegraph @

docs/content/en/commands/hugo_new.md

raw
1 ---
2 title: "hugo new"
3 slug: hugo_new
4 url: /commands/hugo_new/
5 ---
6 ## hugo new
7
8 Create new content
9
10 ### Synopsis
11
12 Create a new content file and automatically set the date and title.
13 It will guess which kind of file to create based on the path provided.
14
15 You can also specify the kind with `-k KIND`.
16
17 If archetypes are provided in your theme or project, they will be used.
18
19 Ensure you run this within the root directory of your project.
20
21 ### Options
22
23 ```
24 -h, --help help for new
25 ```
26
27 ### Options inherited from parent commands
28
29 ```
30 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
31 --config string config file (default is hugo.yaml|json|toml)
32 --configDir string config dir (default "config")
33 -d, --destination string filesystem path to write files to
34 -e, --environment string build environment
35 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
36 --logLevel string log level (debug|info|warn|error)
37 --noBuildLock don't create .hugo_build.lock file
38 --quiet build in quiet mode
39 -M, --renderToMemory render to memory (mostly useful when running the server)
40 -s, --source string filesystem path to read files relative from
41 --themesDir string filesystem path to themes directory
42 ```
43
44 ### SEE ALSO
45
46 * [hugo](/commands/hugo/) - Build your project
47 * [hugo new content](/commands/hugo_new_content/) - Create new content
48 * [hugo new project](/commands/hugo_new_project/) - Create a new project
49 * [hugo new theme](/commands/hugo_new_theme/) - Create a new theme