50 lines
1.2 KiB
Markdown
50 lines
1.2 KiB
Markdown
---
|
|
title: "Welcome to GitBlog"
|
|
date: 2024-01-15
|
|
categories: ["Technology", "Blogging"]
|
|
tags: ["golang", "github", "blog", "cms"]
|
|
---
|
|
|
|
# Welcome to GitBlog!
|
|
|
|
This is your first blog post using GitBlog, a modern blog system that uses GitHub as a headless CMS.
|
|
|
|
## What makes GitBlog special?
|
|
|
|
- **GitHub as CMS**: All your content lives in a GitHub repository
|
|
- **Markdown Support**: Write posts in Markdown with full syntax support
|
|
- **Responsive Design**: Beautiful, mobile-first design
|
|
- **Dark/Light Mode**: Toggle between themes
|
|
- **Auto-Updates**: Content updates automatically when you push to GitHub
|
|
|
|
## Getting Started
|
|
|
|
1. Create a new Markdown file in your `content/posts/` directory
|
|
2. Add frontmatter with metadata
|
|
3. Write your content in Markdown
|
|
4. Push to GitHub
|
|
5. Your blog updates automatically!
|
|
|
|
## Code Example
|
|
|
|
Here's a simple Go code example:
|
|
|
|
```go
|
|
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
fmt.Println("Hello, GitBlog!")
|
|
}
|
|
```
|
|
|
|
## Features
|
|
|
|
- **Categories**: Organize your posts by topic
|
|
- **Tags**: Add tags for better discoverability
|
|
- **Excerpts**: Automatic excerpt generation
|
|
- **RSS Feed**: Built-in RSS feed at `/rss.xml`
|
|
|
|
Happy blogging! 🎉
|