Creating a blog

I Haza Website has been so nice to write in that I have been posting without thinking too much about the interface, which is great! But I want to come back to how this blog was migrated to become a static site.

The helpful thing about the old site was that every post was marked up with Microformats, so I could crawl my own pages and convert them to a format that could be imported as a new project. To do this I created mf2-crawl, which is given a url and produces a folder of posts. Each file contains simplified html and front matter for the title and date of the post. Images and videos in posts are downloaded so they can be imported too.

The importer sees publish dates on the posts and uses them to automatically set up a posts folder when creating the project. The posts folder can then optionally be included in the url, or skipped to make your blog the whole website like I've done here.

The docs site has a new page explaining how this all works. The biggest change to allow blogs on I Haza Website is the addition of front matter processing, both for posts and templates. Post files use front matter for importing, while templates use it to automatically create pages containing multiple posts. The generated pages are created and updated as you create new posts and are configurable via the pager front matter settings.

Along with the addition of front matter, blogs also have a feed generated for them and automatic updates via both WebSub and rssCloud. Your subscribers will be notified about new posts as soon as you publish your site.