-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shortcodes no longer work in Template files #7
Comments
HEG doesn't normally need you to use a shortcode in a template file. What are you trying to do? In general, if you want to call a shortcode from a template, copy and paste the contents of the shortcode into your template. |
I had the same question. I want to call the gallery shortcode from a single.html layout file. The directory argument should come from the front matter. Something like this: But like beatrice said, shortcodes do not work in template files. Any ideas? |
You'll need to copy You'll have to hard-code all the variables normally passed to the shortcode (i.e. every instance of e.g. Change
to
|
According to Hugo, shortcodes don't work in template files. Is there a workaround?
The text was updated successfully, but these errors were encountered: