Debian Codegraph @

docs/content/en/commands/hugo_new_theme.md

raw
1 ---
2 title: "hugo new theme"
3 slug: hugo_new_theme
4 url: /commands/hugo_new_theme/
5 ---
6 ## hugo new theme
7
8 Create a new theme
9
10 ### Synopsis
11
12 Create a new theme with the specified name in the ./themes directory.
13 This generates a functional theme including template examples and sample content.
14
15 ```
16 hugo new theme [name] [flags]
17 ```
18
19 ### Options
20
21 ```
22 --format string preferred file format (toml, yaml or json) (default "toml")
23 -h, --help help for theme
24 ```
25
26 ### Options inherited from parent commands
27
28 ```
29 --clock string set the clock used by Hugo, e.g. --clock 2021-11-06T22:30:00.00+09:00
30 --config string config file (default is hugo.yaml|json|toml)
31 --configDir string config dir (default "config")
32 -d, --destination string filesystem path to write files to
33 -e, --environment string build environment
34 --ignoreVendorPaths string ignores any _vendor for module paths matching the given Glob pattern
35 --logLevel string log level (debug|info|warn|error)
36 --noBuildLock don't create .hugo_build.lock file
37 --quiet build in quiet mode
38 -M, --renderToMemory render to memory (mostly useful when running the server)
39 -s, --source string filesystem path to read files relative from
40 --themesDir string filesystem path to themes directory
41 ```
42
43 ### SEE ALSO
44
45 * [hugo new](/commands/hugo_new/) - Create new content