HUGO
Determine the current output format from templates, partials, and shortcodes
support
jmooring
December 8, 2022, 6:09pm
11
You’ll need to do this:
layouts/shortcodes/ ├── foo.html └── foo.rss
And in markdown:
{{< foo >}}
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
How to alter the shortcode rendering for RSS output format?
support
14
3111
September 12, 2018
Access Scratch inside Shortcode
support
6
2030
June 13, 2019
.Page.Scratch.Set in shortcode; Get in template = Race condition?
support
6
891
May 31, 2021
Use .Scratch (or other params) in a shortcode
feature
8
2776
September 7, 2015
Passing Scratch flags between shortcodes
support
3
2171
November 16, 2017