Shortcode figures in multilanguage hugo #1162
Unanswered
demodeveloperlab
asked this question in
Q&A
Replies: 1 comment
-
Sorted. I have used |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello dear Nuno Coração and community
I am building portfolio site and in default language english figure images get fetched from static folder. Whoever when I switch to Spanish or Czech src img aren't recognized in front page and in post.
{{< figure src="banner.webp" alt="Abstract purple artwork" >}}
I have try as well as use
{{ $image := resources.Get "images/banner.webp" }}
{{ $image := resources.Get "img/banner.webp" }}
{{ $image := resources.Get "static/banner.webp" }}
with no outcomeIn post I can use
![image name](name-of-image.webp)
and it get fetched whoever I would like to use images in front page and I am struggling. I have try to put images in /content folder and they get recognized. My issue with this approach is that I don't know how does it affect hugo.I would appreciate any help
Faust
Beta Was this translation helpful? Give feedback.
All reactions