Categorygithub.com/briangreenhill/ssg
repositorypackage
0.0.0-20240531232507-7eb68b6bd3d0
Repository: https://github.com/briangreenhill/ssg.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

Static Site Generator

Generate static site from markdown files. Use Hugo instead of this.

Installation

go install github.com/briangreenhill/ssg@latest

Usage

Choose a theme for your site. You can use the default theme or create your own.

# clone the default theme
git clone github.com/briangreenhill/ssg

# copy the default theme to your site
cp -r ../ssg/themes/default themes/<your-theme>
# create new site
ssg new

# theme: <your-theme>

# create new post
ssg post

# or use the archetype/post.md file to create a new post manually

Follow the prompts to create a new site. Once your new site is ready, you can start writing posts.

# generate the site files
ssg generate

This will generate the static site files in the public directory.

# watch for changes
ssg watch

This will watch for changes in the posts directory and regenerate the site files when changes are detected.

Features

  • Markdown to HTML
  • Template rendering
  • Configuration
  • Watch mode
  • static assets
  • blog site generation
  • theme support
  • individual post pages
  • blog site links to posts
  • create initial user experience (theme, config, etc)
  • install themes
  • add new post command
  • add draft mode for posts