Skip to content
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

Overriding built-in shortcodes doesn't work #1832

Closed
shadiradio opened this issue Apr 21, 2022 · 1 comment
Closed

Overriding built-in shortcodes doesn't work #1832

shadiradio opened this issue Apr 21, 2022 · 1 comment
Assignees
Labels
bug done in pr Already done in a PR

Comments

@shadiradio
Copy link

shadiradio commented Apr 21, 2022

Bug Report

Environment

Zola version: 0.15.3

Expected Behavior

Zola includes some built in shortcodes for very common functionality (like YouTube), and the documentation says these can be overridden by placing a file with the same name in the templates/shortcodes path.

Current Behavior

I could not get this to work using Zola 0.15.3. If I place a "youtube.html" file in the templates/shortcodes path, Zola serve & build will still use the built-in YouTube shortcode generator.

Step to reproduce

  • Place a custom "youtube.html" shortcode file in templates/shortcodes
  • Use the shortcode in some content
  • Run "zola serve" and notice the custom code is not output
@shadiradio shadiradio changed the title Overriding built-in shortcodes doesn't work on all platforms Overriding built-in shortcodes doesn't work Apr 21, 2022
@Keats Keats added the bug label Apr 23, 2022
@Keats
Copy link
Collaborator

Keats commented Apr 23, 2022

Looks like a regression in the template loading that changed recently, I'll handle it.

@Keats Keats self-assigned this Apr 23, 2022
Keats added a commit that referenced this issue Jan 20, 2023
Bazooka way of fixing #1832
@Keats Keats added the done in pr Already done in a PR label Jan 20, 2023
Keats added a commit that referenced this issue Feb 16, 2023
Bazooka way of fixing #1832
@Keats Keats closed this as completed Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug done in pr Already done in a PR
Projects
None yet
Development

No branches or pull requests

2 participants