Переглянути джерело

:recycle: adding back sidebar

tags/0.9.0
j 4 роки тому
джерело
коміт
6826a21016
1 змінених файлів з 5 додано та 1 видалено
  1. 5
    1
      vue-theme/src/pages/single.vue

+ 5
- 1
vue-theme/src/pages/single.vue Переглянути файл

34
         //- end of article icon     
34
         //- end of article icon     
35
         footer.f-col
35
         footer.f-col
36
             img(src="../star.svg")
36
             img(src="../star.svg")
37
+
38
+    sidebar(v-if="sidebar" :type="`${type}`" layout="single" :related="p2pPostsByType")
37
 </template>
39
 </template>
38
 
40
 
39
 <script>
41
 <script>
40
 import card from '@/components/card.vue'
42
 import card from '@/components/card.vue'
43
+import sidebar from '@/components/sidebars/sidebar'
41
 import gallery from '@/components/gallery/'
44
 import gallery from '@/components/gallery/'
42
 import credits from '@/components/credits'
45
 import credits from '@/components/credits'
43
 import breadcrumb from '@/components/breadcrumb'
46
 import breadcrumb from '@/components/breadcrumb'
49
 const TIMEOUT = 1
52
 const TIMEOUT = 1
50
 
53
 
51
 export default {
54
 export default {
52
-    components: { gallery, credits, card, breadcrumb },
55
+    components: { sidebar, gallery, credits, card, breadcrumb },
53
     props: {
56
     props: {
57
+        sidebar: { type: Boolean },
54
         id: { type: Number },
58
         id: { type: Number },
55
     },
59
     },
56
     mixins: [postTypeGetters, scrollTop],
60
     mixins: [postTypeGetters, scrollTop],

Завантаження…
Відмінити
Зберегти