Do not return error on .Get "class" and vice versa in shortcodes
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 21 May 2018 15:47:52 +0000 (17:47 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 21 May 2018 16:52:13 +0000 (18:52 +0200)
commit2f17f9378ad96c4a9f6d7d24b0776ed3a25a08a3
tree5b7885e08af3628869cbe93088923b29e81ce6a3
parent0a7027e2a87283743d5310b74e18666e4a64d3e1
Do not return error on .Get "class" and vice versa in shortcodes

The current error handling makes parameter checking in shortcodes too verbose for no good reason.

Fixes #4745
hugolib/shortcode.go
hugolib/shortcode_test.go