瀏覽代碼

removed title attr from home material small cards images

bach 3 年之前
父節點
當前提交
35d5eeabdf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      web/themes/custom/materiotheme/templates/field/image--card-small-home.html.twig

+ 1 - 1
web/themes/custom/materiotheme/templates/field/image--card-small-home.html.twig

@@ -17,4 +17,4 @@ set classes = [
 %}
 {# {% set attributes['data-src'] = attributes['src'] %}
 {% set attributes['src'] = '#' %} #}
-<img{{ attributes.addClass(classes) }} />
+<img{{ attributes.addClass(classes).removeAttribute('title') }} />