228 Commits (main)
 

Author SHA1 Message Date
Tom Alexander 0b6900eeca
Serialize the RenderBlogPost to JSON.
This struct still does not contain anything, but I'm just setting up the skeleton for this code.
6 months ago
Tom Alexander b72aec9d20
Starting a struct for what will be passed as the context into dust. 6 months ago
Tom Alexander a510d0809f
Add serde_json. 6 months ago
Tom Alexander 87d32323f2
Add duster. 6 months ago
Tom Alexander a0c5b2d852
Don't use walkdir for getting the post directories.
We are only iterating a single level of depth anyway, so read_dir is enough.
6 months ago
Tom Alexander a9fbb4cd63
Get the output directory and clear it. 6 months ago
Tom Alexander 07e4209048
Setting the post id based on the folder name. 6 months ago
Tom Alexander 2f0f3ab346
Switch to using CustomError because a boxed StdError is not Send. 6 months ago
Tom Alexander d8fc49797e
Moving into a load_blog_post function to create a BlogPost struct. 6 months ago
Tom Alexander 816780589f
Parse the org-mode files. 6 months ago
Tom Alexander acaa12cb6e
Read the org files inside the writer directory. 6 months ago
Tom Alexander 051e86e65a
Remove the AddPost command.
I will be putting this back in later but having the skeleton sitting there unused has no value at this time.
6 months ago
Tom Alexander 273734c9ff
Switch to storing a path to the config file instead of a path to the root directory. 6 months ago
Tom Alexander 4314937d26
Add a function to load a config from file. 6 months ago
Tom Alexander 672ca07a0e
Introduce a new config struct the lives above the raw disk implementation.
This should let us include values that would not be written to disk like the folder containing the config.
6 months ago
Tom Alexander 6668af2025
Add 0BSD license. 6 months ago
Tom Alexander 2350390148
Add some settings to the config. 6 months ago
Tom Alexander 933387eb6f
Writing the writer.toml to a folder when running init. 6 months ago
Tom Alexander 5f82d7a469
Add serde and toml for parsing the config. 6 months ago
Tom Alexander 63b0619094
Add the folder structure for the toml config. 6 months ago
Tom Alexander 8b5930f277
Set up folder structure for the command handlers. 6 months ago
Tom Alexander 179b07388a
Add a test for verifying the clap CLI. 6 months ago
Tom Alexander a1f4600483
Move the CLI to a module. 6 months ago
Tom Alexander 1b189cf15c
Add very basic CLI. 6 months ago
Tom Alexander 7418d4fd81
Add clap and tokio. 6 months ago
Tom Alexander 396b91be10
Add Organic as a dependency. 6 months ago
Tom Alexander 483bc25975
Add Cargo.lock. 6 months ago
Tom Alexander 1ca2d2f49d
Initial commit. 6 months ago