Shortcodes Demos

1 minute read Published: 2017-09-24

radion comes with some handy shortcodes to make your life easier and your posts more exciting.

Table of Contents

GIF-Support

Level up your posts with GIFs!

$$ \texttt{{{ gif(sources=["path/to/file"], width=[1-100], caption=[""]) }}} $$

Fancy Notes

$$ \texttt{{{ note(body="...", header=["" | "Note"], center=[true/false | false]) }}} $$

Note

Some really insightful note here.

$$ \sum_{i=1}^{n} i = \frac{n(n+1)}{2} $$

YouTube Video Embedding

Usage:

{{ youtube(
    id="youtube-id",
    width=[1-100],
    playlist=["playlist id"],
    autoplay=[{true, false}],
    start_time_s=[seconds]
    captions=[{true, false}],
  )
}}

Example: Standalone video

$$ \texttt{{{ youtube(id="ym3y13nA3ew", width=80) }}} $$


Example: Video from a playlist with captions

$$ \texttt{{{ youtube( id="LnzuMJLZRdU", width=80, playlist="PLowKtXNTBypFbtuVMUVXNR0z1mu7dp7eH") }}} $$

Audio File Embedding

$$ \texttt{{{ audio(source="path/to/file") }}} $$

If you're still falling for this, I don't know what to tell you.

Responsive Images

$$ \texttt{ {{ responsive(src="path/to/image", caption="Optional caption")}} } $$

Picture of Rust mascot Ferris

Everyone say 'Hi Ferris' in the comments