hugo/hugolib
Bjørn Erik Pedersen 9409bc0f79 Improve .Site.GetPage for regular translated pages
You can still use the full path with extensions, but to get the current language version:

* If the content file lives in `/content/blog/mypost.en.md`
* Use `.Site.GetPage "page" "blog/mypost"`

Fixes #4285
2018-01-17 22:27:25 +01:00
..
testdata
404_test.go
alias.go
alias_test.go
author.go
case_insensitive_test.go
config.go Revert "Remove the --cleanDestinationDir flag", there is a better fix. 2018-01-10 18:26:42 +01:00
config_test.go
datafiles_test.go
disableKinds_test.go
embedded_shortcodes_test.go
fileInfo.go
fileInfo_test.go
gitinfo.go
hugo_info.go
hugo_sites.go hugolib: Fix handling of mixed-case taxonomy folders with content file 2018-01-08 11:47:26 +01:00
hugo_sites_build.go
hugo_sites_build_test.go Improve .Site.GetPage for regular translated pages 2018-01-17 22:27:25 +01:00
hugo_sites_multihost_test.go Fix URLs for bundle resources in multihost mode 2018-01-06 10:29:13 +01:00
hugolib.debug
media.go
menu.go
menu_test.go
multilingual.go
node_as_page_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
page.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
page_bundler.go
page_bundler_capture.go
page_bundler_capture_test.go Fix non-ASCII path handling for Page resources 2018-01-10 18:23:41 +01:00
page_bundler_handlers.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
page_bundler_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
page_collections.go Improve .Site.GetPage for regular translated pages 2018-01-17 22:27:25 +01:00
page_collections_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
page_output.go layout: Respect Type and Layout for list template selection 2018-01-14 19:59:51 +01:00
page_paths.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
page_paths_test.go
page_permalink_test.go
page_resource.go
page_taxonomy_test.go
page_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
page_time_integration_test.go
pageCache.go
pageCache_test.go
pageGroup.go
pageGroup_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
pages_related.go
pages_related_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
pageSort.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
pageSort_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
pagesPrevNext.go
pagesPrevNext_test.go
pagination.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
pagination_test.go
path_separators_test.go
permalinker.go
permalinks.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
permalinks_test.go
prune_resources.go
robotstxt_test.go
rss_test.go
scratch.go
scratch_test.go
shortcode.go
shortcode_test.go
shortcodeparser.go
shortcodeparser_test.go
site.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
site_benchmark_test.go
site_output.go
site_output_test.go
site_render.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
site_sections.go
site_sections_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
site_stats_test.go
site_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
site_url_test.go Support uglyURLs per section 2018-01-12 10:39:09 +01:00
siteJSONEncode_test.go
sitemap.go
sitemap_test.go
taxonomy.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
taxonomy_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
template_engines_test.go
template_test.go
testhelpers_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
translations.go