Kaynağa Gözat

:recycle: adding back sidebar

tags/0.9.0
j 4 yıl önce
ebeveyn
işleme
6826a21016
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. 5
    1
      vue-theme/src/pages/single.vue

+ 5
- 1
vue-theme/src/pages/single.vue Dosyayı Görüntüle

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

Loading…
İptal
Kaydet