Skip to content

Commit 95d5e68

Browse files
committed
Remove console
1 parent c7ee362 commit 95d5e68

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/compiler/contentModel2/collection/enhancers/links.js

-2
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,10 @@ const attachRelevantPosts = (post, posts) => {
8383
}
8484

8585
const 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)

src/compiler/contentModel2/collection/models/post.js

-3
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,13 @@ const getTranscript = (metadata, localAssets) => {
3939
}
4040

4141
const 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,

0 commit comments

Comments
 (0)