The blog posts are stored in /src/_posts
as Markdown files with front matter support. Adding a new Markdown file in there will create a new blog post.
$ yarn install
$ yarn dev
$ yarn build
Every markdown file (post) will have meta data regarding the post. This meta data is required in all files. Meta data will be in the following form at the beginning of the file.
---
title: <title-of-blg>
excerpt: "<short description>"
coverImage: "<path-to-cover-image>"
date: "2020-03-16T05:35:07.322Z"
author:
name: <author-name>
picture: "<author-image-path>"
role: "Authors role"
description: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Egestas at amet, vulputate viverra facilisis et fringilla duis convallis."
technologies: ["nodejs", "react"]
ogImage:
url: "/assets/blog/preview/cover.jpg"
---
public/
: Public folder_posts/
: Markdown files for all your postscomponents/
: Shared components between pageslib/
: Shared library filespages/
: Pages of app (They also make the routes of the app)styles/
: App stylesREAD.md
: this filepackage.json
: node dependencies and command scriptsnext.config.js
: next configurationtailwind.config.js
: Tailwind configuration for stylingpostcss.config.js
: config for post css (Operations like purge css are configured here)config.json
: general config