GSSG is a lightweight static site generator written in Go (Golang). It converts Markdown files into HTML, allowing you to easily create and maintain static websites. GSSG comes with a built-in development server that enables you to preview your site locally while making changes.
- Simple and easy-to-use.
- Converts Markdown to HTML using Blackfriday.
- Automatic regeneration on file changes.
- Basic web server for local preview.
- Go installed on your machine.
-
Clone the GSSG repository:
git clone https://github.com/rudransh61/GSSG.git cd GSSG
-
Install the required Go packages:
go get -u github.com/radovskyb/watcher go get -u github.com/russross/blackfriday/v2
-
Build the GSSG executable:
$ go run main.go
-
Create Content:
Place your Markdown files in the
content
directory. -
Start GSSG:
Run the GSSG:
$ go run main.go
This will start the file watcher and the web server.
-
Access the Generated Site:
Open your browser and go to http://localhost:8080. You should see your generated site.
-
Preview Changes:
Make changes to your Markdown files in the
content
directory. GSSG will automatically regenerate the site when you save changes. Refresh your browser to see the updates.
GSSG comes with a basic stylesheet. If you want to customize the styles, open the styles/index.css
file and update the styles based on your preferences.
Once you are satisfied with your generated site, you can deploy it to a web hosting service. Copy the contents of the output
directory to your desired hosting location.
If you encounter any issues or have suggestions for improvements, please check the GitHub repository and contribute or create an issue.
This project is licensed under the MIT License - see the LICENSE file for details.