Below you will find pages that utilize the taxonomy term “shortcode”
Posts
Tiktok Shortcode for Hugo
Tiktok shortcode for Hugo When i was trying to post my adorable Tiktok of a wee baby duck
that was just hatching, I couldn’t find anything about embedding Tiktoks into Hugo. I tried just pasting the embed code into a markdown page, but it didn’t work so I wrote a quick and dirty shortcode to do it:
tiktok.html: Save this code in \layouts\shortcodes\tiktok.html
<script async src="https://www.tiktok.com/embed.js"></script> <blockquote class="tiktok-embed" cite="https://www.tiktok.com/{{ .Get "usr" }}/video/{{ .