Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempts to use attrlink in Figure shortcode breaks Hugo #56

Open
mgibson323 opened this issue Apr 8, 2020 · 4 comments
Open

Attempts to use attrlink in Figure shortcode breaks Hugo #56

mgibson323 opened this issue Apr 8, 2020 · 4 comments

Comments

@mgibson323
Copy link
Contributor

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.

@mgibson323
Copy link
Contributor Author

#18 seems to address this, but has been open for 2 years.

@liwenyip
Copy link
Owner

liwenyip commented Apr 8, 2020

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

@mgibson323
Copy link
Contributor Author

@liwenyip I'm not really technical enough to be much help, I'm afraid! 😅

@liwenyip
Copy link
Owner

liwenyip commented Apr 9, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants