A lightweight static website generator built with Go, easily deployable to any static hosting service.
- Easy to customize and extend
- Data provided through JSON API for frontend use
- ICP filing information display support
- Responsive design for mobile and desktop devices
- Clean personal card-style layout
- Customizable icon links and website links
The project includes a Makefile to simplify building and deployment:
# Show all available commands
make help
# Build server application
make build
# Build and run server
make run
# Generate static website
make static
# One-step build: all components and generate static site
make all-in-one
# Clean generated files
make clean
- Install Go (version 1.16 or higher)
- Clone this repository
- Navigate to the project directory
- Run
make run
- Open your browser and visit http://localhost:8080
The project provides a dedicated tool to generate a fully static HTML website:
- Run
make static
- The static website will be generated in the
dist
directory - Upload the contents of the
dist
directory to any static hosting service (GitHub Pages, Netlify, Vercel, etc.)
To customize the website, modify the data in data/pagedata.go
. This file contains all the website's data structures and content.
main.go
- Main server applicationdata/pagedata.go
- Data structures and contentcmd/generate/main.go
- Static site generatortemplates/template.html
- HTML templatestatic/
- Static assets (CSS, images, etc.)dist/
- Generated static website (after runningmake static
)
All resources on this site are collected from the internet for learning and communication purposes only, not for commercial use. If there is any infringement, please contact the site administrator and present copyright proof for deletion!
Copyright © 2020-2025 Linqi All Rights Reserved.