Determine the current output format from templates, partials, and shortcodes

You’ll need to do this:

layouts/shortcodes/
├── foo.html
└── foo.rss

And in markdown:

{{< foo >}}
1 Like