https://github.com/jabolopes/blogo
A simple blog generator
https://github.com/jabolopes/blogo
blog golang static-site-generator
Last synced: 3 months ago
JSON representation
A simple blog generator
- Host: GitHub
- URL: https://github.com/jabolopes/blogo
- Owner: jabolopes
- License: bsd-3-clause
- Created: 2024-06-13T19:55:48.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-06T01:21:05.000Z (6 months ago)
- Last Synced: 2025-02-07T19:49:25.335Z (5 months ago)
- Topics: blog, golang, static-site-generator
- Language: Go
- Homepage:
- Size: 167 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# blogo
A simple program to create blogs.




Inspired by [bashblog](https://github.com/cfenollosa/bashblog).
To create comic blogs see [comico](http://github.com/jabolopes/comico).
## Usage
1. Download and install the [Go toolchain](https://go.dev/doc/install) (if not
already installed).2. Download blogo either by cloning this repository or by downloading the files
from GitHub.3. Add post to the `posts/` directory. See existing examples in that directory.
4. Run `make` to generate your blog. All the blogs files (that you'd need to
deploy to a Web server) are written to the `out/dist/` directory.That's all!
If you'd like to launch a Web server to test your blog, do the following
(requires Python3 installed):5. Run `make run` and in your browser visit `http://localhost:8000`.
## Documentation
### How to create a post?
1. Create a Markdown file, e.g., `posts/my-post.md`.
2. Run `make rebuild`.See the `posts/` directory for examples.
### How to set tags in posts?
Tags are set directly in the post via the `Tags:` field.
See the `posts/` directory for examples.
### How to set the date in posts?
Dates are set directly in the post via the `Date:` field.
See the `posts/` directory for examples.
### How to delete a post?
1. Delete the file from the `posts/` directory.
2. Run `make rebuild`.### How to change the blog's configuration, e.g., blog name, etc?
1. Edit the file `bin/main.go`.
2. Change the `blogName`, `blogDescription`, `authorName`, etc.
3. Run `make rebuild`.### How to change the blog's appearance?
1. Edit the CSS files (see the `html/css/` directory)
2. Edit the HTML templates (see `templates/` directory)
3. 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.### How to add custom HTML pages or custom files?
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`.
### License
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.