-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blog mdx and removing not used libraries
- Loading branch information
Vladyslav Zuiev
committed
Aug 29, 2021
1 parent
1867d98
commit 89b75a2
Showing
30 changed files
with
532 additions
and
3,664 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"base_url": "https://wutali-nextjs-netlify-blog.netlify.app", | ||
"site_title": "Next.js Netlify Blog", | ||
"site_description": "Next.js blog template for Netlify", | ||
"site_keywords": [ | ||
{ | ||
"keyword": "Next.js" | ||
}, | ||
{ | ||
"keyword": "Netlify" | ||
}, | ||
{ | ||
"keyword": "React" | ||
} | ||
], | ||
"posts_per_page": 5, | ||
"twitter_account": "@my-account", | ||
"github_account": "wutali" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...the_problem_you_want_to_solve_boiiiiii.md → ...he_problem_you_want_to_solve_boiiiiii.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
title: 'This is test blog ' | ||
date: 2021-08-29T22:13:03.115Z | ||
thumbnail: /img/puppy-and-adult-dog.jpg | ||
--- | ||
|
||
**m Ipsum** is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,8 @@ | ||
const withPlugins = require('next-compose-plugins'); | ||
const withPWA = require('next-pwa'); | ||
const optimizedImages = require('next-optimized-images'); | ||
const fs = require('fs'); | ||
const blogPostsFolder = './content/blogPosts'; | ||
|
||
const getPathsForPosts = () => { | ||
return fs | ||
.readdirSync(blogPostsFolder) | ||
.map((blogName) => { | ||
const trimmedName = blogName.substring(0, blogName.length - 3); | ||
return { | ||
[`/blog/post/${trimmedName}`]: { | ||
page: '/blog/post/[slug]', | ||
query: { | ||
slug: trimmedName, | ||
}, | ||
}, | ||
}; | ||
}) | ||
.reduce((acc, curr) => { | ||
return { ...acc, ...curr }; | ||
}, {}); | ||
}; | ||
|
||
/** | ||
* @type {import('next').NextConfig} | ||
*/ | ||
const nextConfig = { | ||
/* config options here */ | ||
webpack: (config) => { | ||
config.module.rules.push({ | ||
test: /\.md$/, | ||
use: 'frontmatter-markdown-loader', | ||
}); | ||
return config; | ||
}, | ||
exportPathMap: async function (defaultPathMap) { | ||
return { | ||
...defaultPathMap, | ||
...getPathsForPosts(), | ||
}; | ||
}, | ||
}; | ||
|
||
module.exports = withPlugins( | ||
[ | ||
[ | ||
[ | ||
optimizedImages, | ||
{ | ||
optimizeImagesInDev: true, | ||
responsive: { | ||
adapter: require('responsive-loader/sharp'), | ||
}, | ||
}, | ||
], | ||
[ | ||
withPWA, | ||
{ | ||
pwa: { | ||
dest: 'public', | ||
}, | ||
}, | ||
], | ||
], | ||
], | ||
nextConfig | ||
); | ||
module.exports = nextConfig; |
Oops, something went wrong.