Commit Graph

27 Commits

Author SHA1 Message Date
Jake Bauer ee18195d11 Minor update to README 2022-02-15 01:36:20 -05:00
Jake Bauer 579fd8ce9a Update documentation 2022-02-15 01:25:04 -05:00
Jake Bauer f559095f3a Add unknown command handling 2022-02-15 01:12:29 -05:00
Jake Bauer ff2462db20 Fix format of printf strings 2022-02-15 01:12:18 -05:00
Jake Bauer 24425d7e98 Add command to make new page in addition to new post 2022-02-15 01:11:51 -05:00
Jake Bauer 9fa7c63b3a Fix new site and page generation
Config parsing was done too early so the code had to be refactored to
allow new site and post creation without worrying about the contents of
the config file since neither of them depend on it.
2022-02-15 01:02:47 -05:00
Jake Bauer 65ab9ca6dc Fix Atom feed generation
It now validates with https://validator.w3.org/feed/ and produces proper
embedded HTML output.
2022-02-15 00:31:45 -05:00
Jake Bauer e2af53afe6 Validate format of siteURL 2022-02-15 00:31:14 -05:00
Jake Bauer ef9eb307ee Improve page generation message output 2022-02-14 23:46:52 -05:00
Jake Bauer 2731e45e20 Skip directory when recursing 2022-02-14 23:46:25 -05:00
Jake Bauer 62358adeb6 Remove extra slash from filepath for blog articles 2022-02-14 23:45:43 -05:00
Jake Bauer 912365a1ab Fix error where mkdir would fail to make new site
The -p argument to mkdir was removed so sbs wouldn't overwrite an
existing site, however, it was then missing a statement to create the
directory for the site since previously -p would handle that.
2022-02-14 23:13:48 -05:00
Jake Bauer 36fa487109 Split single printf statements into multiple 2022-02-14 23:13:37 -05:00
Jake Bauer 984bd9dec1 Use printf instead of echo to print error message 2022-02-14 22:55:18 -05:00
Jake Bauer 39d4a040e1 Add command to generate atom feed from posts 2022-02-14 22:55:02 -05:00
Jake Bauer 6f844f8536 Update LICENSE comment 2022-02-14 22:54:22 -05:00
Jake Bauer ca13e29f72 Update README 2022-02-14 22:53:35 -05:00
Jake Bauer 261911b45f Remove unneeded example config file 2022-02-14 03:40:37 -05:00
Jake Bauer 3f4dad46dd Update documentation 2022-02-14 03:27:19 -05:00
Jake Bauer aea5604a85 Update new page command 2022-02-14 03:27:13 -05:00
Jake Bauer efe32d0f8a Remove unneeded TODOs 2022-02-14 03:04:18 -05:00
Jake Bauer ad31b6afd4 Add language code insertion and optimize sed invocations 2022-02-14 02:46:42 -05:00
Jake Bauer e302daf80f Decide against author, date, and css insertion
This is a simple blog so all CSS will come from style.css. Therefore no
special handling of a CSS metadata tag is needed.

Author and date are not applicable to every page of a blog, only posts.
Therefore, those metadata tags will only be used inside of blog posts as
variables.
2022-02-14 02:45:09 -05:00
Jake Bauer 3adaa4ebb2 Add commands to create new sites and blank posts 2022-02-14 02:44:30 -05:00
Jake Bauer 709f3ed6fe Make sbs recurse on directories 2022-02-14 02:43:58 -05:00
Jake Bauer eda3c159ea Implement basic website generation functionality 2022-02-13 20:47:59 -05:00
Jake Bauer e0db2ae481 Initial commit 2021-08-25 09:47:17 -04:00