Mike 3 лет назад
Родитель
Сommit
97f85ab604
1 измененных файлов с 14 добавлено и 2 удалено
  1. 14 2
      themes/hugo-lamp/layouts/collection/list.html

+ 14 - 2
themes/hugo-lamp/layouts/collection/list.html

@@ -100,7 +100,13 @@
                         <div class="col">                
                             <div class="card h-100">
                                 <a href="{{ .Permalink }}" style="color:#444444;">
-                                    <img src="{{ .Params.Image | relURL }}" class="card-img-top" alt="{{ .Title }}">
+                                    <amp-img
+                                        alt="{{ .Title }}"
+                                        src="{{ .Params.Image | relURL }}"
+                                        height="1"
+                                        width="1.4"
+                                        layout="responsive">
+                                    </amp-img>
                                 </a>
                                 <div class="card-body">
                                     <a href="{{ .Permalink }}" style="color:#444444;">
@@ -215,7 +221,13 @@
                         <div class="col">                
                             <div class="card h-100">
                                 <a href="{{ .Permalink }}" style="color:#444444;">
-                                    <img src="{{ .Params.Image | relURL }}" class="card-img-top" alt="{{ .Title }}">
+                                    <amp-img
+                                        alt="{{ .Title }}"
+                                        src="{{ .Params.Image | relURL }}"
+                                        height="1"
+                                        width="1.4"
+                                        layout="responsive">
+                                    </amp-img>
                                 </a>
                                 <div class="card-body">
                                     <a href="{{ .Permalink }}" style="color:#444444;">