- Add `ssite note` command for creating a new note post.
$ ssite note --help
usage: ssite note [-h] [--blog_dir BLOG_DIR] [--pixelart PIXELART]
[--published_date PUBLISHED_DATE]
[--published_timezone PUBLISHED_TIMEZONE]
template_path note
positional arguments:
template_path Path to note template (jinja2).
note Text or HTML content for note post.
optional arguments:
-h, --help show this help message and exit
--blog_dir BLOG_DIR Path to blog directory.
--pixelart PIXELART Path to pixel art image for note.
--published_date PUBLISHED_DATE
Date-time that the note was published. Notes are
assumed to be published at most once per second.
--published_timezone PUBLISHED_TIMEZONE
What timezone to use when interpreting the
--published_date argument?
Example:
ssite note blog/note.jinja2.html --blog_dir blog --pixelart ~/Desktop/octobit11-folklore.png 'A thunderbird from North American folklore for octobit day 11 pixelart ドット絵 🎨'
* Add `ssite syndicate rss` command for creating an RSS feed with resized images. (Requires gifsicle for resizing GIFs, Pillow for other image formats.) (PR 8)
$ ssite syndicate rss --help
usage: ssite syndicate rss [-h] [--output_dir OUTPUT_DIR]
[--site_url SITE_URL]
[--syndication_url SYNDICATION_URL] [-t TEMPLATE]
indexed_dir
positional arguments:
indexed_dir path to root of a directory to be indexed
optional arguments:
-h, --help show this help message and exit
--output_dir OUTPUT_DIR
path to write blog.xml and syndicated images to.
--site_url SITE_URL URL of site (must end in /)
--syndication_url SYNDICATION_URL
URL of syndication site (must end in /)
-t TEMPLATE, --template TEMPLATE
path to index blog.xml template.
Example:
$ ssite syndicate rss blog -t syndicate/blog.jinja2.xml --output_dir syndicate --site_url https://www.timswast.com/ --syndication_url https://timswast-syndicate.storage.googleapis.com/