Welcome to My Blog
Hello and welcome to my blog! This is a simple, markdown-powered blog that focuses on content and readability. In this post, I'll explain how this blog works and what you can expect from it.
How This Blog Works
This blog is built with:
- Next.js for the framework
- Markdown for content
- Tailwind CSS for styling
- Gray Matter for frontmatter parsing
- Remark for markdown processing
Each blog post is a markdown file in the _posts
directory. The filename becomes the URL slug, and the frontmatter contains all the metadata about the post.
Markdown Features
You can use all standard markdown features:
Lists
- Unordered lists
- Like this one
- Are supported
- Numbered lists
- Work too
- Just like this
Code Blocks
// You can share code with syntax highlighting
function hello() {
console.log('Hello, world!');
}
Blockquotes
Blockquotes are great for highlighting important information or sharing quotes from other sources.
Writing New Posts
To create a new blog post:
- Create a new
.md
file in the_posts
directory - Add the required frontmatter (title, date, excerpt, etc.)
- Write your content in markdown
- The post will automatically appear in the blog list
The frontmatter should include:
---
title: 'Your Post Title'
date: 'YYYY-MM-DD'
excerpt: 'A brief description of your post'
author: 'Your Name'
tags: ['tag1', 'tag2']
---
Conclusion
That's it! You now have a fully functional blog that's:
- Fast and efficient
- SEO optimized
- Easy to maintain
- Beautiful to read
Happy blogging!