Using Miro's Justified Gallery with Hugo


I’m trying to use Miro Mannino’s Justified Gallery scripts with my Hugo page. It doesn’t seem to be working. Does Hugo support script tags inside of created pages? Are there any other considerations I should be aware of when trying to make this work?

Thank you for any ideas or input.

I would need more details and I’m not familiar with that library, but check out the safeJS templating function:

Go templates are picky about embedded scripts and styles and will therefore escape them as “unsafe” automatically.

1 Like