A CLI tool for generating beautiful blog posts based on markdown documents
Image Source
./techrocks -markdown post.md -output output.html -template template.html
It may also be used with these default values:
- input=post.md
- template=template.html
- output=output.html
- port=8080
Additionally, you can also watch and live reload the generated blog file by appending the -watch and -serve flags. The default URL is located at http://localhost:8080
Usage like:
./techrocks
techrocks will replace {{.Content}} with the generated markdown HTML
<!DOCTYPE html>
<html>
<head>
<title>Markdown Rendered</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
</head>
<body>
{{ .Content }}
</body>
</html>go build -o techrocks ./main.go
