File tree Expand file tree Collapse file tree 2 files changed +0
-5
lines changed
src/compiler/contentModel2/collection Expand file tree Collapse file tree 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) => {
8383}
8484
8585const linkPosts = ( contentModel ) => {
86- console . log ( 'linkPosts' )
8786 return {
8887 ...contentModel ,
8988 posts : contentModel . posts . map ( ( post ) => {
9089 const category = contentModel . categories . find ( cat => {
91- console . log ( 'links find' , cat . path , post . category . path )
9290 return cat . path === post . category . path
9391 } )
9492 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) => {
3939}
4040
4141const getPostCategory = ( fsObject , categorized ) => {
42- console . log ( 'getPostCategory fsObject.path' , fsObject . path )
4342 const pathParts = fsObject . path . split ( sep )
44- console . log ( 'getPostCategory pathParts' , pathParts )
4543
4644 const categoryName = categorized ?
4745 pathParts . slice ( - 2 , - 1 ) [ 0 ] :
4846 ( Dictionary . lookup ( 'defaultCategoryName' ) || 'Unclassified' )
4947
5048 const categoryPath = pathParts . slice ( 0 , - 1 ) . join ( sep )
51- console . log ( 'getPostCategory categoryPath' , categoryPath )
5249
5350 const categoryPermalink = makePermalink ( {
5451 prefix : Settings . getSettings ( ) . permalinkPrefix ,
You can’t perform that action at this time.
0 commit comments