arnaucode 3907116171 | 7 years ago | |
---|---|---|
.gitignore | 7 years ago | |
LICENSE | 7 years ago | |
README.md | 7 years ago | |
blogo | 7 years ago | |
errors.go | 7 years ago | |
files.go | 7 years ago | |
main.go | 7 years ago | |
readConfig.go | 7 years ago |
Static blog generator, templating engine from markdown and html templates
Types of blogo tags:
[blogo-title]
[blogo-index]
[blogo-post-title]
[blogo-post-md]
Example of config.json:
{
"title": "my blog",
"indexTemplate": "index.html",
"indexPostTemplate": "indexPostTemplate.html",
"postTemplate": "postTemplate.html",
"posts": [
{
"title": "Post 01",
"thumb": "post01thumb.md",
"md": "post01.md"
},
{
"title": "Post 02",
"thumb": "post02thumb.md",
"md": "post02.md"
}
]
}
Example of input files:
<!DOCTYPE html>
<html>
<head>
<title>[blogo-title]</title>
</head>
<body>
[blogo-index]
</body>
</html>
<div class="col-md-3">
[blogo-index-post-template]
</div>
<!DOCTYPE html>
<html>
<head>
<title>[blogo-post-title]</title>
</head>
<body>
[blogo-post-content]
</body>
</html>