Hi,
I was trying to use template functions in content pages, and it didn’t work. Would be super useful. Is there a way to activate this or is it not supported?
Thanks,
Chris
Hi,
I was trying to use template functions in content pages, and it didn’t work. Would be super useful. Is there a way to activate this or is it not supported?
Thanks,
Chris
Hi @metachris
The answer is “no” to whether you can use template functions in content. However, you can use shortcodes:
For the content management piece (i.e. including some Hugo built-ins):
https://hugodocs.info/content-management/shortcodes
For creating your own shortcode templates:
https://hugodocs.info/templates/shortcode-templates
LMK if you have any questions (or doc-related suggestions). Cheers.
As you can use template functions in shortcodes and shortcodes in content pages … I guess the answer is yes you can, in an indirect way.