Sfoglia il codice sorgente

hero overlay text condition for center set to post.title

tags/0.9.0
Alej 4 anni fa
parent
commit
5426299d73
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7
    0
      vue-theme/src/pages/mixin-post-types.js

+ 7
- 0
vue-theme/src/pages/mixin-post-types.js Vedi File

@@ -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…
Annulla
Salva