Javascript in shortcodes

By adding this to config.toml

unsafe = true # Allow HTML in md

I can write scripts and HTML in .md.

However I can’t in shortcodes.

Hi @djibe

have you saved the shortcode .html file to the correct location? shortcode files need to be saved to either layouts/shortcodes or <theme name>/layouts/shortcodes

what is the error ?? when you run hugo -server ?

You can also post the shortcode here - maybe we can check it

Hi @djibe , it looks like you asked your question again here and has been answered. In the future, please do not post multiple times about the same question.

Also please do not bump years-old posts, like the one you originally replied to here.

I am closing both topics now.