arnaucode 6639024ed0 | 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
Directory structure:
/
----blogo
----/blogo-input
--------all the html, js, css files and folders
To execute:
./blogo
Example of blogo.json:
{
"title": "my blog",
"indexTemplate": "index.html",
"postThumbTemplate": "postThumbTemplate.html",
"posts": [
{
"thumb": "post01_thumb.md",
"md": "post01.md"
},
{
"thumb": "post02_thumb.md",
"md": "post02.md"
}
],
"copyRaw": [
"css",
"js"
]
}
Example of input files:
<!DOCTYPE html>
<html>
<head>
<title>[blogo-title]</title>
</head>
<body>
[blogo-content]
</body>
</html>
<div class="col-md-3">
[blogo-index-post-template]
</div>
# Post 01 thumb
This is the description of the Post 01. This will appear on the main page, as the post description.
# Post 01
This is the content of the Post 01. This content will appear when the Post 01 from the main page is clicked.
Types of blogo tags:
[blogo-title]
[blogo-content]
[blogo-index-post-template]
Blogo is used in https://arnaucode.com/blog