Kaynağa Gözat

set yt thumbnail max size, set hero load order

tags/0.9.0
Alej 4 yıl önce
ebeveyn
işleme
b8ec0371c5
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2
    2
      vue-theme/src/components/featured-image.vue

+ 2
- 2
vue-theme/src/components/featured-image.vue Dosyayı Görüntüle

@@ -1,8 +1,8 @@
1 1
 <template lang="pug">
2 2
 .featured-or-hero-image
3 3
     img(v-if="hero && hero.url" :src="getThumbnailFromYt(hero.url)" alt="post thumbnail from YouTube")
4
-    img(v-else-if="featured" :src="featured" alt="post featured")
5 4
     img(v-else-if="thumb" :src="thumb" alt="post thumbnail")
5
+    img(v-else-if="featured" :src="featured" alt="post featured")
6 6
     
7 7
     //- Errors
8 8
     p(v-else-if="hero && !hero.url") ERROR: hero url undefined
@@ -29,7 +29,7 @@ export default {
29 29
     },
30 30
     methods: {
31 31
         getThumbnailFromYt(url) {
32
-            return ytThumbnail(url, 'medium')
32
+            return ytThumbnail(url, 'max')
33 33
         }
34 34
     }
35 35
 }

Loading…
İptal
Kaydet