mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
37c69054e2
f3c88b08 Add warning on GitInfo and Shallow Clones fa5be591 Make the two common Taxonomy templates explicit 4a81c507 Update pull request link in showcase.html f751e57a Update christianmendoza.me in the showcase d582419b Remove commit message prefix from showcase addition guide d12791cf Fix path for screenshot in showcase addition guide e487b916 Add invincible.site to the showcase c85cfccf Update guide for showcase additions c44b31c1 Fix spelling dc10d7f6 Add slightly better GitHub install description 2611980f Revert "Add workaround to Fetch from GitHub documentation" b2e56907 Fix Git commit link in footer b025a638 Regenerate commands docs for v0.24.1 0741ad08 Update README.md 942d130a Add branch info to README e8c36390 Set hugoDocs/master to 0.24.1 c4e21471 Add workaround to Fetch from GitHub documentation db0a3c08 Fix typo in release note git-subtree-dir: docs git-subtree-split: f3c88b081022c945f010cdbfcd25e0008e0c3f5b
50 lines
1.3 KiB
Markdown
50 lines
1.3 KiB
Markdown
---
|
|
date: 2017-06-29T08:42:09+02:00
|
|
title: "hugo new"
|
|
slug: hugo_new
|
|
url: /commands/hugo_new/
|
|
---
|
|
## hugo new
|
|
|
|
Create new content for your site
|
|
|
|
### Synopsis
|
|
|
|
|
|
Create a new content file and automatically set the date and title.
|
|
It will guess which kind of file to create based on the path provided.
|
|
|
|
You can also specify the kind with `-k KIND`.
|
|
|
|
If archetypes are provided in your theme or site, they will be used.
|
|
|
|
```
|
|
hugo new [path] [flags]
|
|
```
|
|
|
|
### Options
|
|
|
|
```
|
|
--editor string edit new content with this editor, if provided
|
|
-h, --help help for new
|
|
-k, --kind string content type to create
|
|
-s, --source string filesystem path to read files relative from
|
|
```
|
|
|
|
### Options inherited from parent commands
|
|
|
|
```
|
|
--config string config file (default is path/config.yaml|json|toml)
|
|
--log enable Logging
|
|
--logFile string log File path (if set, logging enabled automatically)
|
|
--quiet build in quiet mode
|
|
-v, --verbose verbose output
|
|
--verboseLog verbose logging
|
|
```
|
|
|
|
### SEE ALSO
|
|
* [hugo](/commands/hugo/) - hugo builds your site
|
|
* [hugo new site](/commands/hugo_new_site/) - Create a new site (skeleton)
|
|
* [hugo new theme](/commands/hugo_new_theme/) - Create a new theme
|
|
|
|
###### Auto generated by spf13/cobra on 29-Jun-2017
|