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

[Bug]: figure short code is not working properly for multilingual websites #1624

Open
1 task done
newptcai opened this issue Nov 2, 2024 · 0 comments · May be fixed by #1651
Open
1 task done

[Bug]: figure short code is not working properly for multilingual websites #1624

newptcai opened this issue Nov 2, 2024 · 0 comments · May be fixed by #1651
Labels
bug Something isn't working

Comments

@newptcai
Copy link

newptcai commented Nov 2, 2024

What happened?

In the newest version of Hugo 0.136.5, multilingual website can share resources like images between the web pages for the same post in different languages. However, because PaperMod provides its own figure shortcode, this feature of Hugo is broken with using PaperMod theme. Please see this discussion and a walk around.

Steps to reproduce

  1. Create a paper bundle of the same post including different languages
  2. Include some images in the bundle
  3. Include the image using figure short code
  4. You can see that figure only works in the default language.

Hugo Version

Hugo >= 0.112.4 (Recommended - Minimum version required for PaperMod)

PaperMod Version

Commit a2eb47b

What kind of devices are you seeing the problem on?

No response

What browsers are you seeing the problem on?

No response

Browser Version

No response

Relevant log output

This is no relevant log.

Repository/Source Code link where this issue can be reproduced

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@newptcai newptcai added the bug Something isn't working label Nov 2, 2024
valnaumov added a commit to valnaumov/hugo-PaperMod that referenced this issue Dec 23, 2024
Fixes image URL for multilingual sites when the image resource is only defined for the default language.
@valnaumov valnaumov linked a pull request Dec 23, 2024 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant