AgentSkillsCN

Static Site Generator CLI

从 Markdown 生成静态网站。博客、文档、作品集模板,零配置,随处部署,免费的网站搭建工具。

SKILL.md
--- frontmatter
name: Static Site Generator CLI
description: Generate static sites from Markdown. Blog, docs, portfolio templates. Zero config. Deploy anywhere. Free website builder.
tags: [static-site, generator, markdown, blog, docs, cli, jamstack]

Static Site Generator CLI

Build static sites from Markdown. Zero config.

Blog. Docs. Portfolio. Deploy anywhere.

Quick Start

bash
npm install -g @lxgicstudios/sitegen
bash
# Create new site
sitegen init my-blog

# Build site
sitegen build

# Dev server with hot reload
sitegen dev

Templates

TemplateBest For
blogPersonal blog
docsDocumentation
portfolioPersonal site
minimalBare bones

Commands

bash
# Init with template
sitegen init my-site --template docs

# Add new post
sitegen new post "My First Post"

# Add new page
sitegen new page about

# Build for production
sitegen build --minify

# Preview production build
sitegen serve

# Deploy to Netlify
sitegen deploy netlify

# Deploy to Vercel
sitegen deploy vercel

Directory Structure

code
my-site/
├── content/
│   ├── posts/
│   └── pages/
├── templates/
├── static/
└── site.config.js

Features

  • Markdown with frontmatter
  • Syntax highlighting
  • Auto-generated sitemap
  • RSS feed
  • SEO meta tags
  • Fast builds
  • Zero JavaScript by default

Config Example

js
// site.config.js
module.exports = {
  title: 'My Blog',
  description: 'A blog about stuff',
  url: 'https://myblog.com',
  author: 'Your Name'
}

When to Use This

  • Personal blogs
  • Documentation sites
  • Landing pages
  • Portfolios
  • Project sites

Built by LXGIC Studios

🔗 GitHub · Twitter