0
0
Fork 0
Repository for the blog, currently rebuilt in go. http://zero-knowledge.org
Go to file
Gibheer f58b40cb8c add output function
This commit adds all existing content and the possibility to render
everything into a directory.
2022-08-29 20:45:21 +02:00
content add output function 2022-08-29 20:45:21 +02:00
src add output function 2022-08-29 20:45:21 +02:00
static add output function 2022-08-29 20:45:21 +02:00
templates add output function 2022-08-29 20:45:21 +02:00
.gitignore add output function 2022-08-29 20:45:21 +02:00
Makefile add output function 2022-08-29 20:45:21 +02:00
README.md add a nice README file 2021-09-27 21:47:10 +02:00
go.mod add output function 2022-08-29 20:45:21 +02:00
go.sum add output function 2022-08-29 20:45:21 +02:00

README.md

zero-blog

This is the small blog engine to render and serve the blog zero-knowledge.org. Templates can be changed in templates and new posts can be created in files/content/post.

build

To build this project a simple

go build

will suffice. It will automatically pack all files into the binary.

run

To run the project after building, call

./zero-blog --help

to get a list of all parameters.

To dump the content into tmp, use zero-blog --dump-files=tmp. Or use zero-blog to start a local webserver.

add new content

To add new content, place a new markdown file in files/content.

Add a Header to the file in the following format:

+++
title     = "new title"
time      = "2021-01-02T15:16:17"
author    = "Gibheer"
published = true
template  = "default.html"
+++

Template is using default.html by default. If you need to use a different one, then set that variable.