Replies: 1 comment 8 replies
-
LGTM/No/No — Doks (Hyas) uses this same statement to get a blog post image, and that works perfectly fine (see e.g. https://images.gethyas.com/blog/example-post/) Did you add the image(s) as a page resource? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i am building a simple custom shortcode with
Hyasanddoks. But it fails with this very first statement:{{ $images := .Resources.ByType "image" }}There is nothing special about the line, and it is shown in dozens of examples and executed without errors. I suspect that it's because of how Hyas integrates Hugo? Could that be?
I am grateful for any advice :-)
Beta Was this translation helpful? Give feedback.
All reactions