Commit Graph

43 Commits

Author SHA1 Message Date
Anthony J. Martinez acc3e0fc87
Move back to chrono 2021-12-14 14:53:16 -06:00
Anthony J. Martinez e5b8265658
Remove chrono as direct dependency, moving to time
- Clean up lints
- Update deps
2021-12-14 14:26:30 -06:00
Anthony J. Martinez 96dee7eae1
Update deps, implement RSS feed, rev 0.11.0 2021-07-11 11:38:58 +00:00
Anthony J. Martinez ddda9211fe
Prep for addition of RSS feature 2021-07-06 18:54:14 +00:00
Anthony J. Martinez 49bc26f1ef
Close #41 - fix empty topic/gallery issues in default template 2021-07-04 10:36:23 +00:00
Anthony J. Martinez ec44b451df
Rev to 0.10.0 implementing initial gallery support
- Close #39
2021-07-04 09:46:07 +00:00
Anthony J. Martinez 3e35706eee
Prepare for simple gallery feature to get started 2021-07-03 14:52:01 +00:00
Anthony J. Martinez 32684bb53b
Rev to 0.9.1
- Add test for common::path_matches
- Fix error handler
- Close #16
- Close #36
2021-06-19 09:12:12 +00:00
Anthony J. Martinez 3abe584219
Update Cargo.{toml,lock}, document common and config modules.
- Working on #16
2021-06-18 16:43:01 +00:00
Anthony J. Martinez 4b78959fb9
Rev to 0.9.0
- Close #32
- Rearrange routes for better ordering
- Add route for `/favicon.ico`
- Add test for favicon route
2021-06-03 11:58:52 -05:00
Anthony J. Martinez 1396a7f54c
Remove extraneous `static/ext` path 2021-06-03 11:28:27 -05:00
Anthony J. Martinez 09579783dc Add test for empty topic and fix broken template logic
- Close #30
2021-05-06 16:12:47 +02:00
Anthony J. Martinez af11b1e9c5 Remove Credentials struct
- Closes #27
2021-05-01 19:11:01 +02:00
Anthony J. Martinez 2a2da79030 Rev to 0.7.1 for Windows fixes
- Closes #25
2021-05-01 17:21:17 +02:00
Anthony J. Martinez c5114881d8 Update config.rs to exit after config is generated. 2021-04-29 18:17:12 +02:00
Anthony J. Martinez 229c2006a8 Fix #22 2021-04-29 17:47:10 +02:00
Anthony J. Martinez 0582416ca1 Add bind address and port to configuration file
- Close #23
2021-04-29 17:43:47 +02:00
Anthony J. Martinez bb3e5e3fdb Add support for rendering single posts
- Majorly refactor around Engine rather than AppConfig
- Update default template, and test template
- Add tests for individual post handling
- Update README.md
- Close #20
2021-04-27 16:00:33 +02:00
Anthony J. Martinez 7b0f51d02f Add support for user-defined templates
- Rev to 0.5.0
- Update README with notes about using custom templates
- Add test site files to support testing custom templates
- Add tests for custom templates
- Add template field to Site struct
- Refactor render.rs to support loading template based on Site fields
- Add trace for the exact Tera instance loaded
- Close #8
2021-04-27 11:54:43 +02:00
Anthony J. Martinez 1ddf57814a Remove unused import 2021-04-18 12:21:18 +02:00
Anthony J. Martinez e28bc772f4 Add error handler to Router to top panic on bad requests 2021-04-18 12:19:43 +02:00
Anthony J. Martinez 38e1337e08 Move to binary crate only, move to 'anyhow' for error handling. 2021-04-18 11:09:44 +02:00
Anthony J. Martinez 20accb8d66 Create errors module, and add custom errors to auth module 2021-04-17 20:19:30 +02:00
Anthony J. Martinez ec96dd1218 Add logging, refactor Blog to Site, update README.md 2021-04-13 21:24:55 +02:00
Anthony J. Martinez 5a1a767ef8 Add logging calls in auth.rs, common.rs, and arse.rs
Change to block comments for readability
2021-04-11 18:57:55 +02:00
Anthony J. Martinez 8c10b0fce0 Close #5 by implementing logging.
- Default level is INFO
- If -v is passed as an option, level is DEBUG
- If -vv or -v -v is passed, level is TRACE
- Adding additional -v level is still TRACE
2021-04-11 14:19:43 +02:00
Anthony J. Martinez 3bcb433c2d Remove re-exports of Parser, html, Tera, and Context 2021-04-10 12:04:46 +02:00
Anthony J. Martinez 491984fcf0 Name the project. Add a README, and license headers. 2021-04-10 11:27:29 +02:00
Anthony J. Martinez 4b1810390c Add route tests for each route handler
- Closes #12
2021-04-10 09:51:31 +02:00
Anthony J. Martinez 13c279b3ff Fix the default template
- Closes #9
- Closes #10
2021-04-08 20:55:35 +02:00
Anthony J. Martinez f5e680322a Create routes with routerify, reach base MVP
- Closes #1 directory structure is generated by `new` subcommand
- Closes #2 dynamic routes created and verified
- Closes #4 generated config loads and runs the site as defined
2021-04-08 20:22:54 +02:00
Anthony J. Martinez 9ea016dff5 Update cargo, remove warp, branch for routes 2021-04-05 14:01:51 +02:00
Anthony J. Martinez 7af4d8d42f Added rendering, removed route module, renamed io module 2021-04-04 21:03:22 +02:00
Anthony J. Martinez 55a07d2626 Make config struct fields public, start adding routes 2021-04-04 14:16:53 +02:00
Anthony J. Martinez 52404dc233 Restructure mods, write config to disk on generation 2021-04-03 18:49:41 +02:00
Anthony J. Martinez f3ab948253 Add dependencies for logging, testing, pw hashing
- Closes #4
- Closes #6
- Improves test coverage
- Adds password hashing
- Adds totp token generation
2021-03-31 18:08:58 +02:00
Anthony J. Martinez fb2b39aeb2 Refactor again for a more logical AppConfig::generate() method
- Write password to read-only file rather than stdout closing
- Creates the directory structure, may still refactor more
- Fixes #1
2021-03-30 18:47:04 +02:00
Anthony J. Martinez d5c21318f7 Generate AppConfig from user input
- Add auth::generate_alphanum_password
- Use above when generating AppConfig from user input
- Add TODO doc comments to public interface
2021-03-29 20:27:01 +02:00
Anthony J. Martinez 5015f21ede Expand config.rs with additional options 2021-03-28 23:01:59 +02:00
Anthony J. Martinez 6beb6c6af7 Update about/help messages for Clap 2021-03-27 16:18:27 +01:00
Anthony J. Martinez 3b5b815b21 Complete work on loading arguments and configuration 2021-03-27 16:11:22 +01:00
Anthony J. Martinez 74e3b99e23 Update project structure 2021-03-27 09:33:24 +01:00
Anthony J. Martinez a6e8d50730 Initial commit 2021-03-21 17:25:31 +01:00