Ver código fonte

:sparkles: adding fallback image for cards | #145

tags/0.9.0
J 4 anos atrás
pai
commit
21946e25f0

BIN
vue-theme/src/assets/craft-in-america-logo-00-placeholder.jpg Ver arquivo


+ 1
- 1
vue-theme/src/components/featured-image.vue Ver arquivo

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
9
-    p(v-else) ERROR: no featured image or hero
9
+    img(v-else src="../assets/craft-in-america-logo-00-placeholder.jpg" alt="Placeholder - ERROR: no featured image or hero found")
10
 </template>
10
 </template>
11
 
11
 
12
 <script>
12
 <script>

Carregando…
Cancelar
Salvar