Quellcode durchsuchen

hero overlay page slug additions

tags/0.9.0
Alej vor 4 Jahren
Ursprung
Commit
cddb633ed4
1 geänderte Dateien mit 10 neuen und 3 gelöschten Zeilen
  1. 10
    3
      vue-theme/src/pages/mixin-post-types.js

+ 10
- 3
vue-theme/src/pages/mixin-post-types.js Datei anzeigen

@@ -56,9 +56,9 @@ const heroUtils = {
56 56
             // No featured or youTube
57 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 60
             // json.text = post.title
61
+            // json.text = post && post.excerpt ? post.excerpt : post.title
62 62
             json.text = post && post.content ? post.content : post.title
63 63
             
64 64
             // hero title for non-list pages: center, about etc - needs a better method
@@ -69,7 +69,14 @@ const heroUtils = {
69 69
                 post.type == 'page' && post.slug == 'mission' || 
70 70
                 post.type == 'page' && post.slug == 'staff' || 
71 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 81
                 json.text = post.title 
75 82
             }

Laden…
Abbrechen
Speichern