arnaucube
arnaucube/blogoPublic Self-hosted repository
blogo/README.md
README.mdRaw
 1# Blogo
 2Static blog generator, templating engine from markdown and html templates
 3
 4Types of blogo tags:
 5- index.html
 6```
 7[blogo-title]
 8[blogo-index]
 9```
10- postTemplate.html
11```
12[blogo-post-title]
13[blogo-post-md]
14```
15
16
17Example of config.json:
18```json
19{
20    "title": "my blog",
21    "indexTemplate": "index.html",
22    "indexPostTemplate": "indexPostTemplate.html",
23    "postTemplate": "postTemplate.html",
24    "posts": [
25        {
26            "title": "Post 01",
27            "thumb": "post01thumb.md",
28            "md": "post01.md"
29        },
30        {
31            "title": "Post 02",
32            "thumb": "post02thumb.md",
33            "md": "post02.md"
34        }
35    ]
36}
37
38```
39
40
41Example of input files:
42- index.html
43
44```html
45<!DOCTYPE html>
46<html>
47<head>
48  <title>[blogo-title]</title>
49</head>
50<body>
51
52[blogo-index]
53
54</body>
55</html>
56```
57
58- indexPostTemplate.html
59
60```html
61<div class="col-md-3">
62  [blogo-index-post-template]
63</div>
64
65```
66
67- postTemplate.html
68
69```html
70<!DOCTYPE html>
71<html>
72<head>
73  <title>[blogo-post-title]</title>
74</head>
75<body>
76
77[blogo-post-content]
78
79</body>
80</html>
81```