shithub: hugo

Download patch

ref: 20c9b6ec81171d1c586ea31d5d08b40b0edaffc6
parent: f8a119b606d55aa4f31f16e5a3cadc929c99e4f8
author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
date: Mon Jan 15 15:40:39 EST 2018

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