I keep notes on various things in Tiddlywiki and it is very useful to be able to export my blog from the same resource. Currently TiddlyWiki has a good but bare bones static export mechanism, I have made some small changes to the core and a couple of plugins to enable something more along the lines of what I want in a static blog.
Put simply, if I tag any tiddler within my tiddlywiki with blog it will be included as part of my blog when I run the export batch file.
One repository, https://github.com/welford/twstaticblog/, split into two:
The tag names listed below are easily changed via the plugin.
Tag any article
and it will be exported as part of your blog. the output directory will be
./YYYY/MM/DD/[tiddlername].html based on their creation date of the article.
You can change the tags which define a blog post via
Any recently created article tagged with
will be included in
index.html. This can be prevented by also adding the tag
Tag any article blog-framework and it will be exported as part of your blog as a "framework" post. The output location in the root directory. I define a framework article as being a post which helps you navigate the site or one that is accessabe everywhere. I have included a few example framework posts in the helper plugin.
You can change the tags which define a framework post via
As this is a static site generator there is no search functionaity. My plugin auto-generates tag posts based on any tag in Blog or Framework posts as a kind of simple site-map. You can exclude tags from being included in this by adding them to the tag list in
By default the following are excluded:
e.g. tiddlywiki personal OpenGL <- you can click on these and jump to specified tag page.
All the tags listed above are fully customizable :
|Defines which tags constitutes a blog post|
|Defines which tags constitutes a blog framework|
|Defines which tags should not be exported even if they are tagged as a blog posts or blog frameworks|
|Defines which tags will filtered from the index post|
|Defines which tags will be excluded from tag posts and from the tag lists below the title of artiles.|
A banner can be added to the top of every page via
$:/plugins/welford/twstaticblog/helper/staticbanner in my case I use it to link to some of the framework posts.