arnaucube a6de23c22d | 6 years ago | |
---|---|---|
blogo-input | 6 years ago | |
css | 6 years ago | |
img/posts | 6 years ago | |
js | 6 years ago | |
LICENSE | 6 years ago | |
README.md | 6 years ago | |
blogo | 6 years ago | |
blogo.png | 6 years ago | |
firstpost.html | 6 years ago | |
index.html | 6 years ago | |
postaboutcats.html | 6 years ago | |
the-empty-cube.html | 6 years ago |
This is an example of the use of blogo static blog engine (https://github.com/arnaucube/blogo).
blogo-input
.blogo-input/blogo.json
The directory structure is:
/
----blogo --> the blogo binary file
----/blogo-input
--------all the html, js, css files and folders
----output generated files
To generate the output, just need to execute blogo
:
./blogo
The config file blogo.json
contains:
{
"title": "Blogo example", // title showed in the html page
"relativePath": "", // by default empty, used when the blog is inside a
// subdirectory of the web, for example www.website.com/blog,
// in this case the 'relativePath' will be '/blog'
"indexTemplate": "index.html", // html template for all the blog pages (main and post pages)
"postThumbTemplate": "postThumbTemplate.html", // html template that will be used
// in the main html page to show the
// thumbs of the posts
"posts": [ // Array containing the different blog posts.
// The 'thumb' is the overview that
// will be shown in the main html page.
// The 'md' is the markdown file containing
// the complete post text
{
"thumb": "postaboutcats_thumb.md",
"md": "postaboutcats.md"
},
{
"thumb": "the-empty-cube_thumb.md",
"md": "the-empty-cube.md"
},
{
"thumb": "firstpost_thumb.md",
"md": "firstpost.md"
}
],
"copyRaw": [ // array with the folders and files that will be copied raw to the output
"css",
"img",
"js"
]
}