浏览代码

changed order of feature image

tags/0.9.0
Alej 4 年前
父节点
当前提交
67d0151c2b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      vue-theme/src/components/featured-image.vue

+ 2
- 2
vue-theme/src/components/featured-image.vue 查看文件

1
 <template lang="pug">
1
 <template lang="pug">
2
 .featured-or-hero-image
2
 .featured-or-hero-image
3
-    img(v-if="thumb" :src="thumb" alt="post thumbnail")
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")
4
     img(v-else-if="featured" :src="featured" alt="post featured")
5
-    img(v-else-if="hero && hero.url" :src="getThumbnailFromYt(hero.url)" alt="post thumbnail from YouTube")
5
+    img(v-else-if="thumb" :src="thumb" alt="post thumbnail")
6
     
6
     
7
     //- Errors
7
     //- Errors
8
     p(v-else-if="hero && !hero.url") ERROR: hero url undefined
8
     p(v-else-if="hero && !hero.url") ERROR: hero url undefined

正在加载...
取消
保存