Просмотр исходного кода

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

tags/0.9.0
j 4 лет назад
Родитель
Сommit
be02ee8e78
2 измененных файлов: 10 добавлений и 15 удалений
  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 Просмотреть файл

37
 import sidebar from '@/components/sidebars/sidebar'
37
 import sidebar from '@/components/sidebars/sidebar'
38
 import { postTypeGetters, scrollTop } from './mixin-post-types'
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
 export default {
42
 export default {
43
     components: { sidebar, featuredImage },
43
     components: { sidebar, featuredImage },
84
         getPosts() {
84
         getPosts() {
85
             // Sorting
85
             // Sorting
86
             let sort = this.sortBy ? this.sortBy : this.$route.path.split('/').pop()
86
             let sort = this.sortBy ? this.sortBy : this.$route.path.split('/').pop()
87
-            
88
             if(Object.values(sortTypes).includes(sort)) {
87
             if(Object.values(sortTypes).includes(sort)) {
89
                 console.log('trying to sort by:', sort)
88
                 console.log('trying to sort by:', sort)
90
                 console.log(`sortTypes includes ${sort}:`, Object.values(sortTypes).includes(sort))
89
                 console.log(`sortTypes includes ${sort}:`, Object.values(sortTypes).includes(sort))
91
             }
90
             }
92
             // Is this a sort type?
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
             // Don't dispatch if there's no type
95
             // Don't dispatch if there's no type
96
             if(this.type && this.dispatchName) {
96
             if(this.type && this.dispatchName) {

+ 7
- 12
vue-theme/src/pages/single.vue Просмотреть файл

23
         //- related artists section example layout
23
         //- related artists section example layout
24
         section(v-if="type === 'episodes' && post" :post="post")
24
         section(v-if="type === 'episodes' && post" :post="post")
25
             h2.t-up featured in this episode
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
         credits(v-if="type === 'episodes' && post" :post="post")
33
         credits(v-if="type === 'episodes' && post" :post="post")
38
 
34
 
39
     sidebar(v-if="sidebar" :type="`${type}`" layout="single" :related="p2pPostsByType")
35
     sidebar(v-if="sidebar" :type="`${type}`" layout="single" :related="p2pPostsByType")
43
 import sidebar from '@/components/sidebars/sidebar'
39
 import sidebar from '@/components/sidebars/sidebar'
44
 import gallery from '@/components/gallery/'
40
 import gallery from '@/components/gallery/'
45
 import block from '@/components/content-block/block'
41
 import block from '@/components/content-block/block'
46
-// import artists from '@/components/artist'
47
 import credits from '@/components/credits'
42
 import credits from '@/components/credits'
48
 
43
 
49
 import { postTypeGetters, scrollTop } from './mixin-post-types'
44
 import { postTypeGetters, scrollTop } from './mixin-post-types'

Загрузка…
Отмена
Сохранить