arnaucube
arnaucube/blogoPublic Self-hosted repository
blogo/README.md
README.mdRaw
 1# Blogo [![Go Report Card](https://goreportcard.com/badge/github.com/arnaucode/blogo)](https://goreportcard.com/report/github.com/arnaucode/blogo)
 2Static blog generator, templating engine from markdown and html templates
 3
 4
 5## Use
 6Directory structure:
 7
 8```
 9/
10----blogo
11----/blogo-input
12--------all the html, js, css files and folders
13```
14
15To execute:
16```
17./blogo
18```
19
20Example of blogo.json:
21
22```json
23{
24    "title": "my blog",
25    "indexTemplate": "index.html",
26    "postThumbTemplate": "postThumbTemplate.html",
27    "posts": [
28        {
29            "thumb": "post01_thumb.md",
30            "md": "post01.md"
31        },
32        {
33            "thumb": "post02_thumb.md",
34            "md": "post02.md"
35        }
36    ],
37    "copyRaw": [
38      "css",
39      "js"
40    ]
41}
42```
43
44
45Example of input files:
46- index.html
47
48```html
49<!DOCTYPE html>
50<html>
51<head>
52  <title>[blogo-title]</title>
53</head>
54<body>
55
56[blogo-content]
57
58</body>
59</html>
60```
61
62- postThumbTemplate.html
63
64```html
65<div class="col-md-3">
66  [blogo-index-post-template]
67</div>
68
69```
70
71- post01_thumb.md
72
73```
74# Post 01 thumb
75This is the description of the Post 01. This will appear on the main page, as the post description.
76```
77
78- post01.md
79
80```
81# Post 01
82This is the content of the Post 01. This content will appear when the Post 01 from the main page is clicked.
83```
84
85
86Types of blogo tags:
87
88```
89[blogo-title]
90[blogo-content]
91[blogo-index-post-template]
92```