Custom static site generator.
It uses the combination of yaml and markdown to create the post.
It is currently used by:
$ git clone https://github.com/lateralusd/bloggy.git
$ cd bloggy
$ go buildTo start, simply type bloggy skeleton path_to_the_dir which will create the necessary structure.
Go to the newly created directory and inside the public is gonna be your generated webpage.
url- end path of the blog, eg. lateralusd.github.io (used for RSS)title- title of the blogtwitter- your twitter handlegithub- path to your github pagemail- your emailauthor- author that will be embedded throughout the generated webpageoutdir- output where bloggy will generate the webpageabout- about text which should be rendered inside the about.htmldiffblog- diffblog key to embed view data on your pageposts_per_page- how many posts per page, default is 5
If you would like to change default post, home and post backgrounds do as following inside the custom directory:
- Image about-bg.jpg which will be used as the background for the about.html
- Image home-bg.jpg which will be used as the background for the home.html
- Image post-bg.jpg which will be used as the background for all posts
If you would like to use custom CSS, you can do so by creating custom.css inside the custom directory.
Also, you can add favicon.ico to custom directory(this is still WIP).
If you would like to have some images inside your generated post, first create the images directory
inside the directory.
Then, put the image or images there and you can reference them in your markdown as .
Sometimes, you want to show some file content, you can do that easily inside your post
with embed:filepath:syntax(e.g. embed:/tmp/cfg.yaml:yaml). Running bloggy gen the
first time will substitute the line with the contents of the file.
After you have created everything or you just want to test it, run bloggy gen inside the directory
where you skeleton is stored and it will generate the webpage inside the outdir specified in the config file.
You can embed gist with gist:/path/to/the/embed/script/code/from/the/gist.github.com.
Example: gist:https://gist.github.com/lateralusd/12sdffsdfssd.js.
If you are also deploying your github pages to some other domain, you can configure cname inside your cfg.yaml file
so that it creates CNAME file inside your generated directory.
