Build html file from markdown folder
- create markdown files folder
- create html template
- create config.json
for example:
{
"siteName": "site name here",
"staticDir": "static",
"baseUrl": "https://lanqy.xyz",
"sourceDir": "source/_posts/*",
"targetDir": "website",
"postTemplateFile": "template/post.html",
"navTemplateFile": "template/nav.html",
"indexTemplateFile": "template/index.html",
"tagTemplateFile": "template/tag.html",
"itemTemplateFile": "template/item.html"
}
go run ./mksite.go
go build -o mksite.exe ./mksite.go
then you got a website on website folder :)
not work with go get
install if you use windows
Nodejs: https://github.com/lanqy/mksite