A simple program to create blogs.
Inspired by bashblog.
To create comic blogs see comico.
-
Download and install the Go toolchain (if not already installed).
-
Download blogo either by cloning this repository or by downloading the files from GitHub.
-
Add post to the
posts/
directory. See existing examples in that directory. -
Run
make
to generate your blog. All the blogs files (that you'd need to deploy to a Web server) are written to theout/dist/
directory.
That's all!
If you'd like to launch a Web server to test your blog, do the following (requires Python3 installed):
- Run
make run
and in your browser visithttp://localhost:8000
.
- Create a Markdown file, e.g.,
posts/my-post.md
. - Run
make rebuild
.
See the posts/
directory for examples.
Tags are set directly in the post via the Tags:
field.
See the posts/
directory for examples.
Dates are set directly in the post via the Date:
field.
See the posts/
directory for examples.
- Delete the file from the
posts/
directory. - Run
make rebuild
.
- Edit the file
bin/main.go
. - Change the
blogName
,blogDescription
,authorName
, etc. - Run
make rebuild
.
- Edit the CSS files (see the
html/css/
directory) - Edit the HTML templates (see
templates/
directory) - Run
make rebuild
.
Any CSS files stored in the html/css/
directory are automatically copied
to the out/dist/
directory when running make
.
To link new CSS files to your blog's HTML pages edit the
templates/index.template
file and include CSS include tags.
Any files in the html/
directory are copied directly to the output.
Add any files or directories to the html/
directory to have them automatically copied to the output when running make
.
The license (see LICENSE
) covers the blog generation software included in this
repository.
The license does not cover any websites generated using this software. For example, if you use this software to generate your blog, the posts and the HTML pages generated are owned by you and this license does not apply to them.
In other words, you retain all the rights of the contents of your blog even if those contents were generated by this software.