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

Allow custom javascript in posts #180

Open
turtlemonvh opened this issue Jun 3, 2019 · 1 comment
Open

Allow custom javascript in posts #180

turtlemonvh opened this issue Jun 3, 2019 · 1 comment

Comments

@turtlemonvh
Copy link

See, for example:

https://notabug.org/jorgesumle/pelican-js
https://github.com/mortada/pelican_javascript

A few options for doing this

  1. Integrate one of these plugins directly (native support)
  2. 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.

@turtlemonvh turtlemonvh changed the title Allow custom js per post Allow custom javascript in posts Jun 3, 2019
@alexandrevicenzi
Copy link
Owner

@turtlemonvh It could be done, perhaps with the plugin, we already use some.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants