No description
Some checks failed
/ build (push) Failing after 13s
Signed-off-by: Minecon724 <git@m724.eu> |
||
---|---|---|
.forgejo/workflows | ||
.idea | ||
.mvn/wrapper | ||
example_workdir | ||
src/main/java/eu/m724/blog | ||
.gitignore | ||
mvnw | ||
mvnw.cmd | ||
pom.xml | ||
README.md | ||
testkeystore.jks |
blog-software(config, template, content) = blog website
Usage
- Download the program from here
- Get a working directory. See [Project format](#Project format) below.
Don't forget to
git init
! - Run the program:
java -jar blog-0.0.1-shaded.jar
Important caveats
Generated site must be the root of a subdomain, like https://example.com/
.
You can't put it in a directory, like https://example.com/blog/
API
There's no "API," but it's possible to integrate this into your Java project.
See Main.java for an example.
If you need a Maven dependency, see here
Project format
There's an "Example workdir" which you can take inspiration from.
Basically:
assets/
- contains static assetsposts/
- contains poststemplate/
- contains the template, see [Template format](#Template format) belowsite-config.json
- the site configurationname: "my blog"
property - site namebaseUrl: "https://example.com"
property - URL of the site. It must be a root URL - folders are currently not supported. This is used only for the RSS feed.- custom properties
Template format
https://pebbletemplates.io is used
static/
- contains static assetsarticle_template.html
- post templateindex_template.html
- index.html template