hugo/hugolib
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
..
filesystems Prevent symbolic links from themes 2018-09-23 17:18:35 +02:00
pagemeta hugolib: Simplify some code 2018-08-30 22:31:29 +02:00
paths hugolib: Fix typo in private func name 2018-08-30 22:31:29 +02:00
testdata
testsite
404_test.go
alias.go
alias_test.go
author.go
case_insensitive_test.go
collections.go tpl/collections: Add collections.Append 2018-09-14 10:12:08 +02:00
collections_test.go tpl/collections: Add collections.Append 2018-09-14 10:12:08 +02:00
config.go hugolib: Remove deprecated rssURI 2018-09-21 14:30:57 +02:00
config_test.go Improve minifier MIME type resolution 2018-08-28 17:00:53 +02:00
datafiles_test.go
disableKinds_test.go
embedded_shortcodes_test.go
embedded_templates_test.go
fileInfo.go Add directory based archetypes 2018-09-23 19:27:23 +02:00
gitinfo.go
hugo_info.go
hugo_info_test.go
hugo_sites.go Add directory based archetypes 2018-09-23 19:27:23 +02:00
hugo_sites_build.go
hugo_sites_build_failures_test.go
hugo_sites_build_test.go
hugo_sites_multihost_test.go
hugo_themes_test.go
language_content_dir_test.go
media.go
menu.go
menu_test.go
minify_publisher_test.go
multilingual.go
orderedMap.go
orderedMap_test.go
page.go tpl/collections: Improve type handling in collections.Slice 2018-09-10 09:19:01 +02:00
page_bundler.go hugolib: Deprecate Pages.Sort 2018-09-21 14:23:00 +02:00
page_bundler_capture.go Add directory based archetypes 2018-09-23 19:27:23 +02:00
page_bundler_capture_test.go
page_bundler_handlers.go
page_bundler_test.go Improve minifier MIME type resolution 2018-08-28 17:00:53 +02:00
page_collections.go hugolib: Make sure ambiguous lookups in GetPage gets an error 2018-09-14 11:33:02 +02:00
page_collections_test.go
page_output.go
page_paths.go Fix handling of taxonomy terms containing slashes 2018-08-22 07:18:37 +02:00
page_paths_test.go Fix handling of taxonomy terms containing slashes 2018-08-22 07:18:37 +02:00
page_permalink_test.go
page_resource.go
page_taxonomy_test.go Fix handling of taxonomy terms containing slashes 2018-08-22 07:18:37 +02:00
page_test.go hugolib: Simplify some code 2018-08-30 22:31:29 +02:00
page_time_integration_test.go
page_without_content.go
pageCache.go hugolib: Clear the page cache per render 2018-09-21 11:21:15 +02:00
pageCache_test.go hugolib: Compare every element in pages cache 2018-09-21 11:21:15 +02:00
pageGroup.go tpl/collections: Improve type handling in collections.Slice 2018-09-10 09:19:01 +02:00
pageGroup_test.go tpl/collections: Improve type handling in collections.Slice 2018-09-10 09:19:01 +02:00
pages_language_merge.go hugolib: Deprecate Pages.Sort 2018-09-21 14:23:00 +02:00
pages_language_merge_test.go
pages_related.go hugolib: Compare every element in pages cache 2018-09-21 11:21:15 +02:00
pages_related_test.go
pageSort.go hugolib: Deprecate Pages.Sort 2018-09-21 14:23:00 +02:00
pageSort_test.go hugolib: Deprecate Pages.Sort 2018-09-21 14:23:00 +02:00
pagesPrevNext.go
pagesPrevNext_test.go
pagination.go tpl/collections: Improve type handling in collections.Slice 2018-09-10 09:19:01 +02:00
pagination_test.go
path_separators_test.go
permalinker.go
permalinks.go Revert "hugolib: Normalize permalink path segments" 2018-09-18 09:27:49 +02:00
permalinks_test.go Revert "hugolib: Normalize permalink path segments" 2018-09-18 09:27:49 +02:00
prune_resources.go
resource_chain_test.go hugolib: Only run variable variable overwrite test on Go 1.11 2018-08-28 18:00:19 +02:00
robotstxt_test.go
rss_test.go hugolib: Remove deprecated rssURI 2018-09-21 14:30:57 +02:00
shortcode.go hugolib: Fix shortcode output wrapped in p 2018-08-17 09:13:30 +02:00
shortcode_test.go hugolib: Adjust tests for shortcode p-issue 2018-08-17 09:13:39 +02:00
shortcodeparser.go
shortcodeparser_test.go
site.go Add directory based archetypes 2018-09-23 19:27:23 +02:00
site_benchmark_test.go
site_output.go hugolib: Remove deprecated rssURI 2018-09-21 14:30:57 +02:00
site_output_test.go Improve minifier MIME type resolution 2018-08-28 17:00:53 +02:00
site_render.go hugolib: Do not set RSS as Kind in RSS output 2018-09-14 11:33:02 +02:00
site_sections.go hugolib: Deprecate Pages.Sort 2018-09-21 14:23:00 +02:00
site_sections_test.go
site_stats_test.go
site_test.go
site_url_test.go
siteJSONEncode_test.go
sitemap.go
sitemap_test.go
taxonomy.go
taxonomy_test.go hugolib: Do not FirstUpper taxonomy titles 2018-09-06 20:29:21 +02:00
template_engines_test.go
template_test.go
testhelpers_test.go hugolib: Only run variable variable overwrite test on Go 1.11 2018-08-28 18:00:19 +02:00
translations.go