File tree 2 files changed +0
-5
lines changed
src/compiler/contentModel2/collection
2 files changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -83,12 +83,10 @@ const attachRelevantPosts = (post, posts) => {
83
83
}
84
84
85
85
const linkPosts = ( contentModel ) => {
86
- console . log ( 'linkPosts' )
87
86
return {
88
87
...contentModel ,
89
88
posts : contentModel . posts . map ( ( post ) => {
90
89
const category = contentModel . categories . find ( cat => {
91
- console . log ( 'links find' , cat . path , post . category . path )
92
90
return cat . path === post . category . path
93
91
} )
94
92
const postInCategory = category . posts . find ( p => p . path === post . path )
Original file line number Diff line number Diff line change @@ -39,16 +39,13 @@ const getTranscript = (metadata, localAssets) => {
39
39
}
40
40
41
41
const getPostCategory = ( fsObject , categorized ) => {
42
- console . log ( 'getPostCategory fsObject.path' , fsObject . path )
43
42
const pathParts = fsObject . path . split ( sep )
44
- console . log ( 'getPostCategory pathParts' , pathParts )
45
43
46
44
const categoryName = categorized ?
47
45
pathParts . slice ( - 2 , - 1 ) [ 0 ] :
48
46
( Dictionary . lookup ( 'defaultCategoryName' ) || 'Unclassified' )
49
47
50
48
const categoryPath = pathParts . slice ( 0 , - 1 ) . join ( sep )
51
- console . log ( 'getPostCategory categoryPath' , categoryPath )
52
49
53
50
const categoryPermalink = makePermalink ( {
54
51
prefix : Settings . getSettings ( ) . permalinkPrefix ,
You can’t perform that action at this time.
0 commit comments