media, hugolib: Support extension-less media types
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 20 Jun 2017 06:45:52 +0000 (08:45 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 20 Jun 2017 09:04:14 +0000 (11:04 +0200)
commit0f40e1fadfca2276f65adefa6d7d5d63aef9160a
tree7bd0a02e660facfa8200ad3b9adf68ff3c7f3e3d
parent516e6c6dc5733cdaf985317d58eedbc6ec0ef2f7
media, hugolib: Support extension-less media types

This change is motivated by Netlify's `_redirects` files, which is currently not possible to generate with Hugo.

This commit adds a `Delimiter` field to media type, which defaults to ".", but can be blanked out.

Fixes #3614
hugolib/page_paths.go
hugolib/page_paths_test.go
hugolib/site_output_test.go
media/mediaType.go
media/mediaType_test.go
output/layout.go
output/layout_test.go