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
{{ message }}
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.
Sorry if this is a repost. I'm struggling simply using images. I've put them in the assets/images directory and in the assets/static as well as I've tried using src='{{ "image.png" | asset_url }}' and src="{{ '../assets/static/image.png' | asset_url }}". I've read through a bunch of issues and the wiki but still can't find a consistent working solution. I was able to get images inside the svg directory working by using src="{{ '../assets/svg/image.png' | asset_url }}", but it doesn't seem like this same concept works for all those directories.
More Information
I really like the idea of this tool but I'm struggling to understand it all. Hope to help contribute to make it better once I understand it.
The text was updated successfully, but these errors were encountered:
So it turns out that src="{{ '../assets/static/image.png' | asset_url }}" does work BUT srcset="{{ '../assets/static/image.png' | asset_url }} 1x, {{ '../assets/static/image@2x.png' | asset_url }} 2x" does not work. I'm not sure why it would be different.
src="{{ '../assets/image.png' | asset_url }}" looks problematic to me too, I tried every possibility of path (absolute, relative) or filter (asset_url, asset_img_url).
Strangest thing is that it works well with .webp format but not with .jpeg or .png
Problem
Sorry if this is a repost. I'm struggling simply using images. I've put them in the
assets/images
directory and in theassets/static
as well as I've tried usingsrc='{{ "image.png" | asset_url }}'
andsrc="{{ '../assets/static/image.png' | asset_url }}"
. I've read through a bunch of issues and the wiki but still can't find a consistent working solution. I was able to get images inside thesvg
directory working by usingsrc="{{ '../assets/svg/image.png' | asset_url }}"
, but it doesn't seem like this same concept works for all those directories.More Information
I really like the idea of this tool but I'm struggling to understand it all. Hope to help contribute to make it better once I understand it.
The text was updated successfully, but these errors were encountered: