You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
arnaucode 3907116171 blogo v01 7 years ago
.gitignore blogo v01 7 years ago
LICENSE Initial commit 7 years ago
README.md blogo v01 7 years ago
blogo blogo v01 7 years ago
errors.go blogo v01 7 years ago
files.go blogo v01 7 years ago
main.go blogo v01 7 years ago
readConfig.go blogo v01 7 years ago

README.md

Blogo

Static blog generator, templating engine from markdown and html templates

Types of blogo tags:

  • index.html
[blogo-title]
[blogo-index]
  • postTemplate.html
[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:

  • index.html
<!DOCTYPE html>
<html>
<head>
  <title>[blogo-title]</title>
</head>
<body>

[blogo-index]

</body>
</html>
  • indexPostTemplate.html
<div class="col-md-3">
  [blogo-index-post-template]
</div>

  • postTemplate.html
<!DOCTYPE html>
<html>
<head>
  <title>[blogo-post-title]</title>
</head>
<body>

[blogo-post-content]

</body>
</html>