Ver código fonte

:bug: fixed alpha sort bug | added artists related to episode in template

tags/0.9.0
j 4 anos atrás
pai
commit
be02ee8e78
2 arquivos alterados com 10 adições e 15 exclusões
  1. 3
    3
      vue-theme/src/pages/list.vue
  2. 7
    12
      vue-theme/src/pages/single.vue

+ 3
- 3
vue-theme/src/pages/list.vue Ver arquivo

@@ -37,7 +37,7 @@ import featuredImage from '@/components/featured-image'
37 37
 import sidebar from '@/components/sidebars/sidebar'
38 38
 import { postTypeGetters, scrollTop } from './mixin-post-types'
39 39
 
40
-import { convertTitleCase, typeFromRoute, sortTypes, ytThumbnail } from '@/utils/helpers'
40
+import { convertTitleCase, typeFromRoute, sortTypes } from '@/utils/helpers'
41 41
 
42 42
 export default {
43 43
     components: { sidebar, featuredImage },
@@ -84,13 +84,13 @@ export default {
84 84
         getPosts() {
85 85
             // Sorting
86 86
             let sort = this.sortBy ? this.sortBy : this.$route.path.split('/').pop()
87
-            
88 87
             if(Object.values(sortTypes).includes(sort)) {
89 88
                 console.log('trying to sort by:', sort)
90 89
                 console.log(`sortTypes includes ${sort}:`, Object.values(sortTypes).includes(sort))
91 90
             }
92 91
             // Is this a sort type?
93
-            if(this.type !== sort || !Object.values(sortTypes).includes(sort)) sort = null
92
+            // !: BUG
93
+            // if(this.type !== sort || !Object.values(sortTypes).includes(sort)) sort = null
94 94
             
95 95
             // Don't dispatch if there's no type
96 96
             if(this.type && this.dispatchName) {

+ 7
- 12
vue-theme/src/pages/single.vue Ver arquivo

@@ -23,17 +23,13 @@
23 23
         //- related artists section example layout
24 24
         section(v-if="type === 'episodes' && post" :post="post")
25 25
             h2.t-up featured in this episode
26
-            ul.f-row.between
27
-                img(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
28
-                li.f-col.between
29
-                    h2.t-up Julie Schafler Dale
30
-                    p Julie Schafler Dale was the founder and President of Julie: Artisans’ Gallery, New York, which conducted business on Madison Avenue for over forty years. She has served on the Advisory Council for The...
31
-            ul.f-row.between
32
-                img(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/P1033899.jpg")
33
-                li.f-col.between
34
-                    h2.t-up George Rodriguez
35
-                    p George Rodriguez is a Seattle-based ceramic artist and sculptor who, throughout his career, has used oversized ceramic personalities he creates to tell universal stories. He was born and raised in El Paso, where...
36
-
26
+            ul
27
+                li.f-row.between(v-for="artist in p2pPostsByType['artist']")
28
+                    img(src="https://i1.wp.com/www.craftinamerica.org/wp-content/uploads/2020/09/20200210_133120-e1599254267307.jpg")
29
+                    .f-col
30
+                        h2.t-up {{ artist.title }}
31
+                        p {{ artist }}
32
+            
37 33
         credits(v-if="type === 'episodes' && post" :post="post")
38 34
 
39 35
     sidebar(v-if="sidebar" :type="`${type}`" layout="single" :related="p2pPostsByType")
@@ -43,7 +39,6 @@
43 39
 import sidebar from '@/components/sidebars/sidebar'
44 40
 import gallery from '@/components/gallery/'
45 41
 import block from '@/components/content-block/block'
46
-// import artists from '@/components/artist'
47 42
 import credits from '@/components/credits'
48 43
 
49 44
 import { postTypeGetters, scrollTop } from './mixin-post-types'

Carregando…
Cancelar
Salvar