Explorar el Código

hero overlay text condition for center set to post.title

tags/0.9.0
Alej hace 4 años
padre
commit
5426299d73
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7
    0
      vue-theme/src/pages/mixin-post-types.js

+ 7
- 0
vue-theme/src/pages/mixin-post-types.js Ver fichero

@@ -59,6 +59,13 @@ const heroUtils = {
59 59
             // json.text = post && post.excerpt ? post.excerpt : post.title
60 60
             // json.text = post.title
61 61
             json.text = post && post.content ? post.content : post.title
62
+            
63
+            if (post.type === 'page' && post.slug === 'center') {
64
+                json.text = post.title
65
+            }
66
+
67
+
68
+
62 69
             return json
63 70
         },
64 71
         _clearHero(store) {

Loading…
Cancelar
Guardar