Skip to content

Use {{% tag for Markdown shortcode#85

Merged
progval merged 1 commit intocodemeta:masterfrom
bact:use-md-shortcode
Oct 30, 2025
Merged

Use {{% tag for Markdown shortcode#85
progval merged 1 commit intocodemeta:masterfrom
bact:use-md-shortcode

Conversation

@bact
Copy link
Copy Markdown
Contributor

@bact bact commented Oct 30, 2025

crosswalk and properties-description are shortcodes defined in Markdown format (see: layouts/shortcodes ), so we need to use {{% .. %}} tag or (newer versions of) Hugo will complain about "no compatible template found for shortcode".

Tested with Hugo v0.152.0 (latest, as of 30 Oct 2025) and v0.108.0 (as used in current CI).

`crosswalk` and `properties-description` are shortcodes defined in Markdown format (see: layouts/shortcodes ), so we need to use `{{% .. %}}` tag or Hugo will complain about "no compatible template found for shortcode".

Tested with Hugo v0.150.0

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@progval
Copy link
Copy Markdown
Member

progval commented Oct 30, 2025

thanks Hugo 🙄

@progval progval merged commit 217472f into codemeta:master Oct 30, 2025
1 check passed
@bact bact deleted the use-md-shortcode branch October 30, 2025 15:30
@meldra
Copy link
Copy Markdown
Contributor

meldra commented Dec 9, 2025

This seems to have broken the rendering of the video on the jsonld page on the hugo that comes with debian trixie, which is ~131. It doesn't throw errors, just displays text on the page instead of a video embed.

@progval
Copy link
Copy Markdown
Member

progval commented Dec 10, 2025

It still works for me on Chromium 143.0.7499.40 and Firefox 140.5.0esr

@meldra
Copy link
Copy Markdown
Contributor

meldra commented Dec 10, 2025

Yeah I'm not entirely sure what's going on. I don't know when it started happening either, only noticed it yesterday, but I suspect when I recently reinstalled my dev env as trixie rather than upgraded bookworm. Once I did notice, no matter how I served it or which browser or OS I viewed it with, until I upgraded the hugo via the 8hob repo it was showing raw html unless I swapped the % back to < and >.

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.

3 participants