Add "target" and "rel" parameters to figure shortcode
authorKaushal Modi <kaushal.modi@gmail.com>
Mon, 5 Feb 2018 19:06:29 +0000 (14:06 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 9 Feb 2018 21:27:58 +0000 (22:27 +0100)
commit2e95ec6844bf65a25485bdc8e2638e45788f2dcf
tree977cee6771f6a45bb446fd40a12afe0453c50d8c
parent76d38d5e5322fc6220fb9e74f9ca0668606ebb5d
Add "target" and "rel" parameters to figure shortcode

Also:

- Remove unnecessary space from `figure` tag if no class is specified.
  - Update related tests.
- Add test cases for the changes made to the figure shortcode.
- Document the newly added target and rel parameters
- Add more detail to the documentation of all figure shortcode parameters.
docs/content/content-management/shortcodes.md
docs/content/templates/shortcode-templates.md
hugolib/embedded_shortcodes_test.go
hugolib/page_test.go
hugolib/shortcode_test.go
tpl/tplimpl/template_embedded.go