Example Blog Post
This is an example blog post demonstrating how to create content for your website using simple markdown files.
Welcome to Your Blog!
This is an example blog post written in Markdown. You can use all the standard markdown features:
Headers
You can create headers using #
symbols:
#
for H1##
for H2###
for H3
Text Formatting
- Bold text
- Italic text
Inline code
- Links
Lists
Unordered Lists
- Item 1
- Item 2
- Item 3
Ordered Lists
- First item
- Second item
- Third item
Code Blocks
`javascript
function hello() {
console.log("Hello, world!");
}
`
Blockquotes
This is a blockquote. You can use it for quotes or important notes.
How to Create New Posts
To create a new blog post:
- Create a new
.md
file in thecontent/blog/
directory - Name it with the format:
YYYY-MM-DD-post-title.md
- Add frontmatter at the top (the content between
---
lines) - Write your content using Markdown
Required Frontmatter Fields
`yaml
title: "Your Post Title"
date: "2024-01-15"
summary: "Brief description of your post"
tags: ["Tag1", "Tag2", "Tag3"]
featured: true # or false - shows in featured section
hidden: false # or true - hides post from public display
readTime: "5 min read" # optional - will be calculated if not provided
`Hidden Posts Feature
You can now create draft posts that won't be displayed publicly:
- Set
hidden: true
to hide a post from the blog page - Set
hidden: false
(or omit the property) to show the post - Hidden posts are perfect for:
- Future posts you want to prepare in advance
- Private notes that shouldn't be public yet
That's it! Your post will automatically appear on the blog page (unless it's hidden).