我编写了一个名为 Ghorg 的项目,它提供了一个命令行实用程序,用于管理一组 org 模式的博客文章,将它们作为 html 发布到您的 hyde 站点,以及调用 hyde 生成和发布功能。这纯粹是一种方便的实用程序,因为您不再需要去您的站点存储库来使用它。
我想,比如说,如果一些 vim 用户或想要帖子管理但不是 org-mode 发布但可能是降价或其他东西的人(现在它的硬编码只是打开 emacs) - 如果这些人想要帮助做到这一点通用然后那会很棒。
Ghorg:海德组织
dlacewell@scarf$ ghorg -h
usage: ghorg [-h] [-b] [-p] [-s SITE] [--config CONFIG] [-l] [-n [N]] [-P]
[-U] [-e] [-t TEMPLATE] [-D]
[title [title ...]]
Manage your Ghorg blog.
positional arguments:
title all arguments will be joined with hyphen for filename
`ghorg post title' => `2012-01-12-post-title.org'
optional arguments:
h, --help show this help message and exit
b, --build Perform configured Hyde build step.
p, --publish Perform configured Hyde publishing step. (implies -b/-- build)
s SITE, --site SITE Path to the root of the Hyde site.
config CONFIG Filename of Hyde configuration for building.
l, --list List previous posts (-n to change count).
n [N] Change number of posts listed (default:5).
P Set post as published.
U Set post as unpublished.
e Mix with -P/-U to edit while changing publishing
status.
t TEMPLATE Location of template for new posts.
D Delete existing post.