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 Add support for theme composition and inheritance 2018-06-10 23:55:20 +02:00
check.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
check_darwin.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
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 Add support for theme composition and inheritance 2018-06-10 23:55:20 +02:00
convert.go Add support for theme composition and inheritance 2018-06-10 23:55:20 +02:00
env.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
gen.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genautocomplete.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genchromastyles.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
gendoc.go commands: Add basic server test 2018-04-11 09:51:07 +02:00
gendocshelper.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
genman.go commands: Make the hugo command non-global 2018-04-11 09:50:19 +02:00
helpers.go commands: Avoid ANSI character output on Windows 2018-05-22 17:15:19 +02:00
helpers_others.go commands: Avoid ANSI character output on Windows 2018-05-22 17:15:19 +02:00
helpers_windows.go commands: Avoid ANSI character output on Windows 2018-05-22 17:15:19 +02:00
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 Only set 'url' if permalink in metadata and remove duplicate confirm msg 2018-01-28 11:24:31 +01:00
limit_darwin.go commands: Move the commands related logic to its own file 2018-04-11 09:50:19 +02:00
limit_others.go commands: Make the limit command work again 2018-04-11 09:50:19 +02:00
list.go Add support for theme composition and inheritance 2018-06-10 23:55:20 +02:00
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 commands: Move nextStepsText() to new_site.go 2018-06-11 10:40:22 +02:00
new_theme.go Create missing head.html partial on new theme generation 2018-06-25 12:06:45 -06:00
release.go commands: Re-add the missing releaser command 2018-04-16 08:23:32 +02:00
release_noop.go commands: Re-add the missing releaser command 2018-04-16 08:23:32 +02:00
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 Add support for theme composition and inheritance 2018-06-10 23:55:20 +02:00
version.go Add "extended" to "hugo version" 2018-07-08 11:08:54 +02:00