hugolib: Fix output formats override when no outputs definition given
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 17 May 2017 15:04:07 +0000 (18:04 +0300)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 17 May 2017 16:00:15 +0000 (19:00 +0300)
commit6e2f2dd8d3ca61c92a2ee8824fbf05cadef08425
treeb8c8c97fca661ab6208d8ddd6d46ab68cf2e63b0
parent94b5be67fc73b87d114d94a7bb1a33ab997f30f1
hugolib: Fix output formats override when no outputs definition given

A common use case for this is to redefine the built-in output format `RSS` to give it a different URL.

Before this commit, that was not possible without also providing an `outputs` definition.

Fixes #3447
hugolib/site_output.go
hugolib/site_output_test.go