mirror of
https://github.com/arnaucube/blogo.git
synced 2026-02-06 19:36:39 +01:00
README.md update
This commit is contained in:
89
README.md
89
README.md
@@ -1,95 +1,10 @@
|
|||||||
# Blogo [](https://goreportcard.com/report/github.com/arnaucode/blogo)
|
# Blogo [](https://goreportcard.com/report/github.com/arnaucode/blogo)
|
||||||
Static blog generator, templating engine from markdown and html templates
|
Static blog generator, templating engine from markdown and html templates
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
## Use
|
## Use
|
||||||
Directory structure:
|
A complete usage example can be found in this repo: https://github.com/arnaucube/blogoExample
|
||||||
|
|
||||||
```
|
|
||||||
/
|
|
||||||
----blogo
|
|
||||||
----/blogo-input
|
|
||||||
--------all the html, js, css files and folders
|
|
||||||
```
|
|
||||||
|
|
||||||
To execute:
|
|
||||||
```
|
|
||||||
./blogo
|
|
||||||
```
|
|
||||||
|
|
||||||
Example of blogo.json:
|
|
||||||
|
|
||||||
```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:
|
|
||||||
- index.html
|
|
||||||
|
|
||||||
```html
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>[blogo-title]</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
[blogo-content]
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
```
|
|
||||||
|
|
||||||
- postThumbTemplate.html
|
|
||||||
|
|
||||||
```html
|
|
||||||
<div class="col-md-3">
|
|
||||||
[blogo-index-post-template]
|
|
||||||
</div>
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
- post01_thumb.md
|
|
||||||
|
|
||||||
```
|
|
||||||
# Post 01 thumb
|
|
||||||
This is the description of the Post 01. This will appear on the main page, as the post description.
|
|
||||||
```
|
|
||||||
|
|
||||||
- post01.md
|
|
||||||
|
|
||||||
```
|
|
||||||
# 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]
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
BIN
blogo-large.png
Normal file
BIN
blogo-large.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 192 KiB |
Reference in New Issue
Block a user