Getting Started with Static Blog Generator
本文将指导你如何使用静态博客生成器快速搭建自己的博客。
Getting Started with Static Blog Generator
This article will guide you through creating and managing your own blog using this static blog generator.
Quick Start
- Clone the project repository
- Install dependencies:
npm install - Modify the
config.jsonconfiguration file - Add your articles in the
articlesdirectory - Run
npm run buildto generate the static website
Writing Guide
Markdown Support
You can use all standard Markdown syntax for writing:
- Headings (H1-H6)
- Lists (ordered and unordered)
- Links and images
- Code blocks
- Blockquotes
Article Configuration
Each article needs to be configured in config.json with the following information:
{
"path": "articles/your-article.md",
"title": "Your Article Title",
"date": "Publication Date"
}
Customizing Themes
You can customize your blog's appearance and layout by modifying the template files in the templates directory. The templates use the EJS template engine, which allows you to easily create dynamic content.
Start creating your first blog post now!