Attempts to use `attrlink` in Figure shortcode breaks Hugo
mgibson323 opened this issue · comments
When I try to implement the Hugo Easy Gallery on my personal site, Hugo refuses to build when the {{< figure >}}
stanza contains the attrlink
parameter.
The build fails with the following error:
ERROR 2020/04/07 16:53:42 "/Users/mgibson323/work/redacted.com/content/about.md:8:1":
failed to render shortcode "figure": failed to process shortcode:
"/Users/mgibson323/work/redacted.com/layouts/shortcodes/figure.html:23:53":
execute of template failed: template: shortcodes/figure.html:23:53: executing
"shortcodes/figure.html" at <.Get>: can't evaluate field Get in type string
Example code follows:
about.md:
{{< load-photoswipe >}}
{{< figure src="/images/me.jpg" attr="image courtesy of @someuser" attrlink="https://twitter.com/someuser" >}}
figure.html:
Unchanged from master.
#18 seems to address this, but has been open for 2 years.
Hi @mgibson323
thanks for raising these issues. Unfortunately I currently don't have time to deal with pull requests. Are you interested in helping to maintain this project? (i.e. review and approve pull requests)
Cheers
@liwenyip I'm not really technical enough to be much help, I'm afraid! 😅