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

Use background-image as content #120

Closed
Simounet opened this issue Sep 26, 2017 · 4 comments
Closed

Use background-image as content #120

Simounet opened this issue Sep 26, 2017 · 4 comments

Comments

@Simounet
Copy link
Contributor

Simounet commented Sep 26, 2017

Hi there,
One site I'm reading is using background-image on links to display images. On wallabag, the content is empty. Is there a way to fix that? I told them not to do this but you know how it works…

<a href="/image.jpg" style="background-image: url('/image.jpg');"><span></span></a>
@j0k3r
Copy link
Owner

j0k3r commented Sep 26, 2017

What result are you waiting for?

@Simounet
Copy link
Contributor Author

Something like that:

<a href="/image.jpg"><img src="/image.jpg"></a>

@j0k3r
Copy link
Owner

j0k3r commented Sep 26, 2017

Maybe this can be done using a site config file.
Look at replace_string in http://help.fivefilters.org/customer/portal/articles/223153-site-patterns

@Simounet
Copy link
Contributor Author

This is not perfect but helped me a lot for fivefilters/ftr-site-config#341. Thanks!

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