1
0
Fork 0
mirror of https://github.com/gohugoio/hugo.git synced 2025-02-25 09:12:10 +00:00
hugo/hugolib
Bjørn Erik Pedersen aa6b1b9be7 output: Support templates per site/language
This applies to both regular templates and shortcodes. So, if the site language is French and the output format is AMP, this is the (start) of the lookup order for the home page:

1. index.fr.amp.html
2. index.amp.html
3. index.fr.html
4. index.html
5. ...

Fixes 
2017-07-04 09:12:44 +02:00
..
testdata
404_test.go
alias.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
alias_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
author.go
case_insensitive_test.go
config.go hugolib: Add disableAliases 2017-06-20 11:03:34 +02:00
config_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
datafiles_test.go
disableKinds_test.go
embedded_shortcodes_test.go
gitinfo.go
handler_base.go
handler_file.go
handler_meta.go
handler_page.go
handler_test.go
hugo_info.go
hugo_sites.go Support open "current content page" in browser 2017-06-26 21:34:16 +02:00
hugo_sites_build.go
hugo_sites_build_test.go output: Support templates per site/language 2017-07-04 09:12:44 +02:00
media.go
menu.go
menu_old_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
menu_test.go
multilingual.go
node_as_page_test.go
page.go output: Support templates per site/language 2017-07-04 09:12:44 +02:00
page_collections.go
page_collections_test.go
page_output.go
page_paths.go media, hugolib: Support extension-less media types 2017-06-20 11:04:14 +02:00
page_paths_test.go media, hugolib: Support extension-less media types 2017-06-20 11:04:14 +02:00
page_permalink_test.go
page_taxonomy_test.go
page_test.go hugolib: Add more summary test 2017-06-28 20:30:26 +02:00
page_time_integration_test.go
pageCache.go Apply gofmt -s 2016-02-06 13:09:52 +01:00
pageCache_test.go
pageGroup.go hugolib, source, tpl: Fix docs 2016-11-23 09:13:00 +01:00
pageGroup_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
pageSort.go hugolib: Enhance .Param to permit arbitrarily nested parameter references 2017-02-19 08:50:08 +01:00
pageSort_test.go
pagesPrevNext.go huglib: Add even more missing GoDoc 2016-04-07 16:05:23 +02:00
pagesPrevNext_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
pagination.go
pagination_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
path_separators_test.go hugolib, output: Incorporate suffix and type in layout resolve 2017-03-27 15:43:56 +02:00
permalinker.go
permalinks.go hugolib: Extend the sections API 2017-07-04 09:11:49 +02:00
permalinks_test.go
robotstxt_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
rss_test.go
scratch.go
scratch_test.go all: Refactor to nonglobal Viper, i18n etc. 2017-02-17 17:15:26 +01:00
shortcode.go output: Support templates per site/language 2017-07-04 09:12:44 +02:00
shortcode_test.go output: Support templates per site/language 2017-07-04 09:12:44 +02:00
shortcodeparser.go
shortcodeparser_test.go
site.go hugolib: Add disableAliases 2017-06-20 11:03:34 +02:00
site_benchmark_test.go
site_output.go
site_output_test.go media, hugolib: Support extension-less media types 2017-06-20 11:04:14 +02:00
site_render.go hugolib: Render 404.html for all languages 2017-07-01 22:58:52 +02:00
site_sections.go hugolib: Extend the sections API 2017-07-04 09:11:49 +02:00
site_sections_test.go hugolib: Extend the sections API 2017-07-04 09:11:49 +02:00
site_test.go
site_url_test.go
siteJSONEncode_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
sitemap.go
sitemap_test.go
taxonomy.go
taxonomy_test.go
template_engines_test.go
template_test.go
testhelpers_test.go
translations.go all: Update textual references in Go source to point to gohugoio/hugo 2017-06-13 18:47:17 +02:00