Skip to content

Instantly share code, notes, and snippets.

@alexwitherspoon
Created October 29, 2018 01:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexwitherspoon/b73400767da0db64cab00aa50adbdc02 to your computer and use it in GitHub Desktop.
Save alexwitherspoon/b73400767da0db64cab00aa50adbdc02 to your computer and use it in GitHub Desktop.
Shortcodes for Hugo Website

Here are a number of short codes

The Hugo Shortcode Docs: https://gohugo.io/content-management/shortcodes/

Reactive Images Short Codes: https://nilsnh.no/2018/06/10/hugo-how-to-add-support-for-responsive-images-trough-image-processing-and-page-bundles-3/

Youtube

{{< youtube _videoUID >}}

Reactive Images

{{< bundle-image name="_image.jpg" alt="_AltText" caption="_CaptionText" >}}

Gist

{{< gist _username _gistID >}}

Vimeo

{{< vimeo _videoUID >}}

Tweet

{{< tweet _tweetUID >}}

Instragram

{{< instagram _instagramID >}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment