- Fix server address formatting in log message - Update README with clearer formula-based description - Adjust draft rendering logic to account for server mode Signed-off-by: Minecon724 <git@m724.eu>
This commit is contained in:
parent
cbb7dab7f3
commit
a78bec5c5e
3 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
This program takes a template, posts and config to make you a blog.
|
||||
blog-software(config, template, content) = blog website
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
|
@ -53,10 +53,10 @@ public class Main {
|
|||
var templateDirectory = Path.of(commandLine.getOptionValue("output-dir", workingDirectory.resolve("template").toString()));
|
||||
var outputDirectory = Path.of(commandLine.getOptionValue("output-dir", workingDirectory.resolve("generated_out").toString()));
|
||||
var force = commandLine.hasOption("force");
|
||||
var renderDrafts = commandLine.hasOption("draft");
|
||||
|
||||
var server = commandLine.hasOption("server");
|
||||
var openBrowser = true;
|
||||
var renderDrafts = commandLine.hasOption("draft") || server;
|
||||
|
||||
//
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ public class Server implements HttpHandler {
|
|||
server.createContext("/", this);
|
||||
server.start();
|
||||
|
||||
System.out.println("Server started on " + server.getAddress());
|
||||
System.out.println("Server started on http:/" + server.getAddress());
|
||||
|
||||
return server.getAddress();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue