๐
Markdown First
Write content in Markdown with TOML front matter. Organize files in folders. That's it.
Install and create your first site:
go install github.com/tduyng/gozzi@latestmkdir my-blog && cd my-blog
mkdir -p content/blog templates static
# Create config
cat > config.toml << EOF
base_url = "https://example.com"
title = "My Blog"
EOF
# Create first post
mkdir -p content/blog/hello-world
cat > content/blog/hello-world/index.md << EOF
+++
title = "Hello World"
date = 2024-01-15
+++
# My First Post
Welcome to my blog built with Gozzi!
EOFcat > templates/post.html << EOF
<!DOCTYPE html>
<html>
<head>
<title>{{ .Page.Config.title }}</title>
</head>
<body>
<article>
<h1>{{ .Page.Config.title }}</h1>
<time>{{ date .Page.Config.date "Jan 2, 2006" }}</time>
{{ .Page.Content }}
</article>
</body>
</html>
EOFgozzi serve
# Visit http://localhost:1313I built Gozzi to learn, and now I use it daily for tduyng.com:
See the real-world example to learn from my setup.
Gozzi is MIT licensed. Built by learning, shared for learning.