Show HN: Super simple static blog generator, Benjen
daeken.com
daeken.com
https://github.com/stochastic-technologies/static-appengine-...
You just create a folder called "yourdomain.com" and put your static files in there, upload, done. All URLs are rewritten (/foo/bar/ resolves to /foo/bar.html or /foo/bar/index.html) and you can host multiple domains on the same GAE instance. I use it for various static sites, such as my company's site (http://www.stochastictechnologies.com/) and my resume (http://resume.korokithakis.net/). They're all pretty much hosted for free, since they're static files on a single app on AppEngine, and migration is almost free (you just upload the whole thing to the host of your choice).
You can also assign multiple domains to one site, or rewrite your URLs to custom files.
Those that grok file systems, might be happy assembling content into an appropriate folder structure, and hitting a 'publish (to html)' button. You could use a little metadata - such as summaries and keywords to string it all together.
I know there are systems such as Pelican already out there, but it's still too complicated for Joe Blow to produce a site with the tool.
Frames were a pretty simple alternative to elaborate CMS's that have been employed to pretty much solve the same problem.
So much wasted CPU time and money. So called professionals cashing in while presenting building web sites as mystical and technically difficult (I realise the tech is difficult - but why should it be?). It goes so against Tim Berners-Lee's vision of publishing easily and straight from the browser.
Not having some dead simple web page editor, has ended in sites such as Facebook becoming 'the web' to so many people.
Jekyll, which it is similar to, had stagnated by the time I'd first put it up on GitHub, but it's probably closer in "philosophy" to Statamic[2].
[1]: https://github.com/aprescott/serif
[2]: http://statamic.com/
A static blog generator checks that filesystem access works and your language provides a markdown and a template library.
EDIT for more information:
Being able to write a static blog generator means you have to learn most of the basic skills in a language from the data structures to objects/functions (whatever floats your boat). You have to also most likely interact with outside systems like I/O and databases (if your static blog generator is db driven). You get to familiarize yourself with packaging/modules that the language uses. So yea, I think creating a static blog generator as a next step after hello world would be great
It's a 74 line Makefile (or 174 with generous spacing and comments) with rubygems and node module support.
I like the flexibility of gus and the ability to create custom index files (for tags, by date, &c) and run preprocessing on asset files.
It also has a watch option, but at the moment that acts a little wonky and I'm working on fixing it.
One of my end goals is to create a search index and then use that server-side or ideally via JavaScript on the client.
Here is an entry I wrote about it: http://jimkeener.com/posts/first
And that's great.
I like your idea and I hope it's okay if I borrow some of your concepts for a future idea of mine ?
rewrite ^/superpacking-js-demos$ /2011-08-31_Superpacking_JS_Demos.html;Alternatively it could generate a table of redirects for you to put in your server config/htaccess.
when you edit a template or configuration, you need to regenerate entire site.
even if you blog very often, say 10 times a day, in 10 years, you only have 36k articles. Probably it shouldn't take too long to regenerate entire site for any kind of modification or addition of pages.
or, you can try to be smart and draw dependency graph (maybe using Makefile) and update what's only needed. basically you're solving caching problem, one of the hardest thing in programming.
A static blog is run through a processor once, and plain html pages are generated and stored on the server. When a visitor requests a page, they're served one of those static pages.
WordPress has caching plugins that allow your blog to serve static pages (helpful when traffic surges and your database might be overwhelmed), but, by default, a WordPress blog serves content dynamically (meaning it isn't cached).
Maybe there is space for something like that uses HTTP responses to check for changes, and generates RSS.
https://gist.github.com/graue/5184195
The only Jekyll-specific stuff is the first three lines and the `{{ .. }}` and `{% .. %}` templating code.
(For those who don't know, Atom is the better, cleaner replacement for RSS, supported by virtually all RSS readers. I like to promote RSS since people know what that means, but when I go and actually implement it, I spell RSS "Atom".)
And I think that is why I love the idea and concept of Kirby. It's PHP yes, but I this case I don't really think that, that is a bad idea. I wan't my blog to be easy and cheap to host. And a PHP hotel is easy and cheap. With Kirby you build your site and upload it to some random host and it just runs. No need to setup S3 or Github commit and push.
So thumbs up to Kirby, it suites my lazy habits.