Ver código fonte

hero overlay page slug additions

tags/0.9.0
Alej 4 anos atrás
pai
commit
cddb633ed4
1 arquivos alterados com 10 adições e 3 exclusões
  1. 10
    3
      vue-theme/src/pages/mixin-post-types.js

+ 10
- 3
vue-theme/src/pages/mixin-post-types.js Ver arquivo

56
             // No featured or youTube
56
             // No featured or youTube
57
             if (!json.url) { json.heroType = null }
57
             if (!json.url) { json.heroType = null }
58
 
58
 
59
-            // Uncomment to set the hero text to the post title or excerpt
60
-            // json.text = post && post.excerpt ? post.excerpt : post.title
59
+            // Uncomment to set the hero text to the post.title or excerpt
61
             // json.text = post.title
60
             // json.text = post.title
61
+            // json.text = post && post.excerpt ? post.excerpt : post.title
62
             json.text = post && post.content ? post.content : post.title
62
             json.text = post && post.content ? post.content : post.title
63
             
63
             
64
             // hero title for non-list pages: center, about etc - needs a better method
64
             // hero title for non-list pages: center, about etc - needs a better method
69
                 post.type == 'page' && post.slug == 'mission' || 
69
                 post.type == 'page' && post.slug == 'mission' || 
70
                 post.type == 'page' && post.slug == 'staff' || 
70
                 post.type == 'page' && post.slug == 'staff' || 
71
                 post.type == 'page' && post.slug == 'board' || 
71
                 post.type == 'page' && post.slug == 'board' || 
72
-                post.type == 'page' && post.slug == 'join-our-mailing-list' 
72
+                post.type == 'page' && post.slug == 'donate' || 
73
+                post.type == 'page' && post.slug == 'library' || 
74
+                post.type == 'page' && post.slug == 'artists-resources' || 
75
+                post.type == 'page' && post.slug == 'craft-resources-map' || 
76
+                post.type == 'page' && post.slug == 'video-resources-for-educators' || 
77
+                post.type == 'page' && post.slug == 'craft-in-schools' || 
78
+                post.type == 'page' && post.slug == 'mailing-list' 
79
+                
73
             ) { 
80
             ) { 
74
                 json.text = post.title 
81
                 json.text = post.title 
75
             }
82
             }

Carregando…
Cancelar
Salvar