You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Integrate one of these plugins directly (native support)
Set up flex so that you can extend certain sections of the base template with included templates (e.g. so the user can drop an extra_js.html to a certain path on disk and that gets injected into the base template at run time if it exists).
Number 2 has the benefit of making it so users can install a variety of plugins that may ordinarily require them to modify the base template, but instead they can change the structure of the page by simply dropping a template fragment into a directory.
Let me know if this sounds interesting. I am happy to put together a PR with a working implementation.
The text was updated successfully, but these errors were encountered:
turtlemonvh
changed the title
Allow custom js per post
Allow custom javascript in posts
Jun 3, 2019
See, for example:
https://notabug.org/jorgesumle/pelican-js
https://github.com/mortada/pelican_javascript
A few options for doing this
extra_js.html
to a certain path on disk and that gets injected into the base template at run time if it exists).Number 2 has the benefit of making it so users can install a variety of plugins that may ordinarily require them to modify the base template, but instead they can change the structure of the page by simply dropping a template fragment into a directory.
Let me know if this sounds interesting. I am happy to put together a PR with a working implementation.
The text was updated successfully, but these errors were encountered: