Closed gouravkhunger closed 1 year ago
Add an alt attribute field for images in linkpreview.html include:
alt
linkpreview.html
https://github.com/genicsblog/theme-files/blob/3f7a79002305bce07dc5c6e5430156aa832da7e1/_includes/linkpreview.html#L44-L49
Example:
{% if image != blank %} <img src="{{ image }}" class="w-full md:max-w-[40%] rounded-xl aspect-video lg:m-4" alt="{% if include.imgAlt %}{{ include.imgAlt }}{% else %}Preview image of {{ include.title | default: meta['title'] }}" /> {% endif %}
can i get assigned?
Hey @sohaibaumer, sure!
Add an
alt
attribute field for images inlinkpreview.html
include:https://github.com/genicsblog/theme-files/blob/3f7a79002305bce07dc5c6e5430156aa832da7e1/_includes/linkpreview.html#L44-L49
Example: