adityatelange / hugo-PaperMod

A fast, clean, responsive Hugo theme.
https://adityatelange.github.io/hugo-PaperMod/
MIT License
10.26k stars 2.72k forks source link

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

Open newptcai opened 2 weeks ago

newptcai commented 2 weeks ago

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