|
|
@@ -11,7 +11,7 @@
|
|
11
|
11
|
router-link(:to="`/${type}/${post.slug}`")
|
|
12
|
12
|
p {{post.featured}}
|
|
13
|
13
|
img(v-if="post.featured" :src="post.featured" alt="post thumbnail")
|
|
14
|
|
- img(v-else-if="JSON.parse(post.hero).url" :src="getThumbnailFromYt(JSON.parse(post.hero).url)" alt="post thumbnail from YouTube")
|
|
|
14
|
+ img(v-else-if="post.hero && JSON.parse(post.hero).url" :src="getThumbnailFromYt(JSON.parse(post.hero).url)" alt="post thumbnail from YouTube")
|
|
15
|
15
|
p(v-else-if="post.hero") ERROR: {{ post.hero }}
|
|
16
|
16
|
p(v-else) ERROR: no thumbnail
|
|
17
|
17
|
|