Skip to content

figure shortcode classes not working #1095

@PierreMesure

Description

@PierreMesure

Issue description

I'm trying to resize an image in a page. Setting its width or height in a standard Markdown image tag doesn't work.

I tried to use a figure shortcode and add Tailwind classes as shown in Hugo's documentation. But to no avail.

Finally, I managed to get something to work by using default="1" and width="300":

{{< figure
  src="img.jpg"
  default="1"
  width="300"
>}}

Theme version

v2.12.2

Hugo version

v0.148.2

Which browser rendering engines are you seeing the problem on?

WebKit (Safari)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions