-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Register additional static content #2804
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your participation and understanding. |
That would be great. I had the exact same issue as I was looking for my theme to automatically adds a couple of assets (favicons in this case) at the root of the generated site. I hacked my way into Pelican internals and hook a signal to register my assets as static files one by one. See my hack at: |
I have a working solution, after figuring out how the pelican internals work with each other. This essentially injects my static files into Pelican's static file processing.
This makes the |
Thanks @bviefhues for the feedback! It really looks like something similar to my solution. Do you have code to share so we can compare? We might create a common utility method to cover that case and eventually propose it to Pelican project. |
Commenting here for the record, |
@kdeldycke here is a reader I wrote for a small Pelican-powered site: ExifReader. Built for a rather specific use case. We should aim for a more generic solution. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your participation and understanding. |
Hi @bviefhues. Would you be willing to help implement a more generic solution, as you proposed? |
@justinmayer definitelly would like to help. Least i can do is use my tiny website as a testbed. Also willing to do changes on Pelican itself, if we come to a robust idea on how to implement. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your participation and understanding. |
Feature Request
Expose a method or a function for usage by plugin authors for registering static content, for processing with all "pelican magic".
This should allow plugin authors to implement functionality similar to what
{static}
or{attach}
does in the built-in readers, including:The text was updated successfully, but these errors were encountered: