hugo/resource
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 resource: Fix handling of very long image file names 2018-01-15 20:22:14 +01:00
image.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
image_cache.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
image_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
resource.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
resource_test.go resource: Add front matter metadata to Resource 2018-01-17 16:22:33 +01:00
testhelpers_test.go resource: Fix handling of very long image file names 2018-01-15 20:22:14 +01:00