Comment

Comment by faraixyz

I’ve done this too https://its.ffg.co.zw/bikeshed/components/lite-yt/

I’d recommend using HasShortcode in the head so the script is only loaded if the post has a shortcode.

Also, use {{/* and */}} to stop Hugo from trying to render a template tag so you can include it in a code snippet.

parent faraixyz 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton