Skip to content

Fix linked images#1766

Open
de-es wants to merge 1 commit into
contao:mainfrom
de-es:image-link
Open

Fix linked images#1766
de-es wants to merge 1 commit into
contao:mainfrom
de-es:image-link

Conversation

@de-es
Copy link
Copy Markdown
Contributor

@de-es de-es commented May 27, 2026

Fix Hugo warning: WARNING you must call the ref / relref shortcode with '% %' instead of '< >' to work correctly for the anchor target attribute

@de-es de-es requested a review from fritzmg as a code owner May 27, 2026 09:47
Copy link
Copy Markdown
Contributor

@fritzmg fritzmg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this will work in the production build - and it wouldn't have any cache busting.

@fritzmg
Copy link
Copy Markdown
Contributor

fritzmg commented May 27, 2026

Generally I consider this a bug or limitation in Hugo. It's an inline link to an image, that's why we have to use < > instead of % - otherwise the text would be rendered as a paragraph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants