|
2 years ago | |
---|---|---|
css | 6 years ago | |
.gitignore | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
main.go | 2 years ago | |
markdown.go | 6 years ago |
Simple static site generator.
.md
extension are turned into HTML../config.json # Configuration file (see below).
./template.html # One template used for every page.
./src # Root directory for source files.
./build # Generated by program.
The config file should be stored in the project's root directory in
config.json
.
type Config struct {
RootName string
ThumbWidth int
ThumbHeight int
ThumbQuality int
}
The context passed to the template contains the following:
type Context struct {
Content template.HTML
Breadcrumbs []Breadcrumb
}
type Breadcrumb struct {
FullPath string // Full path.
Name string // File basename.
}