Commit Graph

49 Commits

Author SHA1 Message Date
Jake Bauer 5092b0a5d0 Update documentation 2022-08-17 18:43:00 -04:00
Jake Bauer ffbd95acd9 Improve build command with Gemini support
sbs can now convert gemtext to markdown which allows mixing gemini and
markdown in the same site directory and easy publishing of gemini
content for the web.

A modification of the build command was also added to allow building the
entire site without specifying any paths.
2022-08-17 18:42:59 -04:00
Jake Bauer fba8da8d11 Fix missing newlines for error messages 2022-08-17 18:42:59 -04:00
Jake Bauer a0b801f064 Add "push" command to facilitate quick publishing
The push command executes an arbitrary command specified in config.ini
under the "pushcmd" variable.
2022-08-17 18:42:54 -04:00
Jake Bauer 766ca83d02 Update README 2022-06-23 06:17:33 -04:00
Jake Bauer d080d15e9e Bump version number 2022-06-23 06:05:36 -04:00
Jake Bauer 3aa52dbb0e Create manpage 2022-06-23 06:01:55 -04:00
Jake Bauer c05a650fe2 Auto-create blank style.css file for new sites 2022-06-23 05:10:39 -04:00
Jake Bauer 3131809d07 Fix incorrect CSS file name in <head> tags 2022-06-23 04:09:57 -04:00
Jake Bauer f556a03890 Fix title tag replacement 2022-04-27 11:33:17 -04:00
Jake Bauer a9a71b687f Fix atom feed embedded content type and links
Embedded content type was set to `text` when it should have been `html`
to tell clients that HTML was the format of the embedded content. It was
previously `text` because either the documentation for Atom feeds
(https://validator.w3.org/feed/docs/atom.html#text) is terrible or all
the clients do their own thing when it comes to parsing content.

Links to content weren't being properly munged so links included
`/content/blog` instead of just `/blog` and that resulted in broken
links.
2022-03-19 15:25:22 -04:00
Jake Bauer 359cc142d6 Bump version number 2022-02-22 16:26:24 -05:00
Jake Bauer 67142daff1 Fix up new post and new page commands 2022-02-22 16:21:49 -05:00
Jake Bauer 5c73ec2841 Refactor into functions+switch-case 2022-02-22 16:21:36 -05:00
Jake Bauer 0878a83fa8 Add version command 2022-02-22 15:26:22 -05:00
Jake Bauer 7a966eaf61 Pipe commands into while loops (SC2044) 2022-02-22 15:17:24 -05:00
Jake Bauer 4fb81b9cc7 Add helptext printout 2022-02-22 14:58:51 -05:00
Jake Bauer e5b24b78d3 Make 'build' command explicit 2022-02-22 14:11:51 -05:00
Jake Bauer 4bb58b9245 Group printf statements 2022-02-22 14:02:40 -05:00
Jake Bauer 4ff916dd83 Add quotes to prevent shell globbing 2022-02-22 14:01:28 -05:00
Jake Bauer 244c11495e Fix use of variables in printf format strings 2022-02-22 13:38:58 -05:00
Jake Bauer 38b235203f Fix bug with interpretation of find -name argument 2022-02-15 02:01:42 -05:00
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