hugo/commands
Bjørn Erik Pedersen 2650fa772b Add directory based archetypes
Given this content:

```bash
archetypes
├── default.md
└── post-bundle
    ├── bio.md
    ├── images
    │   └── featured.jpg
    └── index.md
```

```bash
hugo new --kind post-bundle post/my-post
```

Will create a new folder in `/content/post/my-post` with the same set of files as in the `post-bundle` archetypes folder.

This commit also improves the archetype language detection, so, if you use template code in your content files, the `.Site` you get is for the correct language. This also means that it is now possible to translate strings defined in  the `i18n` bundles,  e.g. `{{ i18n "hello" }}`.

Fixes #4535
2018-09-23 19:27:23 +02:00
..
benchmark.go
check.go
check_darwin.go
commandeer.go commands: Gracefully handle typos in server config when running the server 2018-08-16 12:54:59 +02:00
commands.go commands: Remove deprecated flags 2018-09-21 14:27:35 +02:00
commands_test.go commands: Remove deprecated flags 2018-09-21 14:27:35 +02:00
config.go
convert.go
env.go
gen.go
genautocomplete.go
genchromastyles.go
gendoc.go
gendocshelper.go
genman.go
helpers.go
helpers_others.go
helpers_windows.go
hugo.go commands: Remove deprecated flags 2018-09-21 14:27:35 +02:00
hugo_windows.go Update hugo_windows.go 2018-07-22 00:09:46 +02:00
import_jekyll.go commands: Fix golint issues 2018-09-07 08:25:51 +02:00
import_jekyll_test.go
limit_darwin.go
limit_others.go
list.go
new.go Add directory based archetypes 2018-09-23 19:27:23 +02:00
new_content_test.go Add directory based archetypes 2018-09-23 19:27:23 +02:00
new_site.go
new_theme.go
release.go
release_noop.go
server.go commands: Fix golint issues 2018-09-07 08:25:51 +02:00
server_test.go commands: Disable flaky server tests on Windows CI 2018-07-18 09:43:31 +02:00
static_syncer.go
version.go Add "extended" to "hugo version" 2018-07-08 11:08:54 +02:00