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

How to include images in custom templates #248

Open
c0da opened this issue Jan 25, 2024 · 4 comments
Open

How to include images in custom templates #248

c0da opened this issue Jan 25, 2024 · 4 comments

Comments

@c0da
Copy link

c0da commented Jan 25, 2024

I would like to be able to include images (or css, fonts, etc) in my custom templates, but I can't figure out how to do it. Can images located in, for example, /etc/sablier/themes/mytheme/images/ be included in the theme in any way?

Thank you in advance!

@acouvreur
Copy link
Owner

acouvreur commented Jan 25, 2024

I think the best way to avoid any security issue is to use base64.
However, when loading the theme I could replace all img src with the base64.

This way you don't have to put the base64 yourself.

@c0da
Copy link
Author

c0da commented Jan 25, 2024

That would be great, @acouvreur! Right now, I'm using base64, and my html has turned into a monster 😄 Thank you in advance!

Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Feb 25, 2024
@acouvreur
Copy link
Owner

unstale
I will probably change the stale status to more than 6 months

@acouvreur acouvreur removed the Stale label Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants