Smarf is a simple static blog generator written to replace my Wordpress installation.
Smarf was written as an exercise to learn more about TypeScript and file I/O in Node. As such, it only supports the creation of posts, archives and an RSS feed. It is not very configurable and was written to suit my particular use case. Use at your own risk!
- install Node and Typescript
- in the repo directory, type
npm run build
- HTML and RSS output will be placed in a
html
directory
- in the repo directory, run
node ./build/create-post.js -t 'My post title'
- this will create a Markdown file in the
posts
directory - edit this file to add the body of the post
- (optional) add tags to the metadata
- when you're done editing, run
npm run build
to generate the HTML page for this post
Upload the contents of html
to your hosting provider.