No description
|
|
||
|---|---|---|
| .forgejo/workflows | ||
| .idea | ||
| .mvn/wrapper | ||
| src/main | ||
| .gitignore | ||
| LICENSE.md | ||
| mvnw | ||
| mvnw.cmd | ||
| pom.xml | ||
| README.md | ||
| testkeystore.jks | ||
blog-software(config, template, content) = blog website
Usage
- Download the program from here
Mini or Full? Full contains dependencies, which use native libraries. Choose Full, if unsure. - Run the program:
java -jar blog-0.0.2-standalone-full.jar -s example_workdir
For tips on how to create your own project (workdir), see [Project format](#Project format) below.
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
Here's an example blog you can take inspiration from.
Basically:
assets/- contains static assetsarticles/- contains articles. Post format:- Header / metadata:
title A title- article titlesummary This is a article with a title- article summarylive- is the article live (not draft), doesn't need an argument- Custom properties, which are Strings
- Empty line separates header from content- Post content in HTML. Generally not sanitized, but depends on template.
- Header / metadata:
template/- contains the template, see [Template format](#Template format) belowsite-config.yml- the site configurationname: my blogproperty - site namebaseUrl: https://example.comproperty - 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, which can be anything as they are Objects
Template format
Pebble Templates is used
static/- contains static assetsarticle_template.html- article templateindex_template.html- index.html template