hugo/hugolib
Bjørn Erik Pedersen 20c9b6ec81
resource: Add front matter metadata to Resource
This commit expands the Resource interface with 3 new methods:

* Name
* Title
* Params

All of these can be set in the Page front matter. `Name` will get its default value from the base filename, and is the value used in the ByPrefix and GetByPrefix lookup methods.

Fixes #4244
2018-01-17 16:22:33 +01:00
..
testdata
404_test.go
alias.go
alias_test.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
author.go Revert the "standardize author data" 2016-09-18 19:16:39 +02:00
case_insensitive_test.go
config.go
config_test.go Add support for multiple config files via --config a.toml,b.toml,c.toml 2017-08-09 20:13:02 +02:00
datafiles_test.go
disableKinds_test.go Run gofmt to get imports in line vs gohugoio/hugo 2017-06-13 19:12:10 +02:00
embedded_shortcodes_test.go
fileInfo.go
fileInfo_test.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
gitinfo.go
hugo_info.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
hugo_sites.go
hugo_sites_build.go
hugo_sites_build_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
hugo_sites_multihost_test.go
hugolib.debug
media.go
menu.go
menu_test.go Add .Title and .Page to MenuEntry 2017-12-15 18:49:21 +01:00
multilingual.go
node_as_page_test.go
page.go
page_bundler.go
page_bundler_capture.go
page_bundler_capture_test.go
page_bundler_handlers.go
page_bundler_test.go
page_collections.go
page_collections_test.go
page_output.go layout: Respect Type and Layout for list template selection 2018-01-14 19:59:51 +01:00
page_paths.go
page_paths_test.go
page_permalink_test.go
page_resource.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
page_taxonomy_test.go hugolib: Do not tolower result from Page.GetParam 2017-12-29 08:58:38 +01:00
page_test.go
page_time_integration_test.go
pageCache.go
pageCache_test.go
pageGroup.go
pageGroup_test.go
pages_related.go
pages_related_test.go
pageSort.go
pageSort_test.go
pagesPrevNext.go
pagesPrevNext_test.go
pagination.go
pagination_test.go
path_separators_test.go
permalinker.go hugolib: Add optional outputFormat to Ref/RelRef 2017-04-04 23:09:01 +02:00
permalinks.go
permalinks_test.go
prune_resources.go
robotstxt_test.go
rss_test.go
scratch.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
scratch_test.go
shortcode.go
shortcode_test.go
shortcodeparser.go
shortcodeparser_test.go
site.go
site_benchmark_test.go
site_output.go
site_output_test.go tpl/tplimpl: Fix escaped HTML Go 1.9 multioutput issue (#3880) 2017-09-13 12:32:06 +02:00
site_render.go
site_sections.go
site_sections_test.go
site_stats_test.go Implement Page bundling and image handling 2017-12-27 18:44:47 +01:00
site_test.go
site_url_test.go
siteJSONEncode_test.go
sitemap.go
sitemap_test.go
taxonomy.go
taxonomy_test.go
template_engines_test.go
template_test.go all: Update import paths to gohugoio/hugo 2017-06-13 18:42:45 +02:00
testhelpers_test.go
translations.go hugolib: Fix .IsTranslated with identical filenames 2017-11-17 19:46:32 +01:00