First I should clarify my terms. When I say that I faked a blog, what I mean to say is that I faked having a CMS (content management system) on my website (raagnair.com).
- I don’t want to host the posts/media that I upload
- I don’t want to ever worry about migration/backups
- I don’t want to pay for the bandwidth
index.html file to load them, and synthetically mimic a “front page” along with individual “blog post” pages.
I blame it on ego, really. In my college databases class, my TA had a personal website hosted on WordPress, and somehow that offended me. In my over-eager college brain I thought: How can someone who, ostensibly, knows how to program, rely on the same medium of content management that the layman does?
Well, years later it came time for me to make my own website, and I ran into the issue of how to host a blog under the same domain name, without succumbing to the devil of WordPress.
As it so happens, my friends at the time were avid fans of Tumblr. And with a bit of sniffing around I found out that Tumblr has a simple querying API that can be accessed via Ajax. No OAuth, no API key, just open fearless access to all of the internet.
After a little bit of playing around, I put together a website that:
- Queries my Tumblr blog for a handful of posts
- Grabs the first <img> from the post to use as the preview pic
- Presents these several posts, along with their titles, dates, and preview pic
Barely any SEO to speak of. With my homepage online for a few months it struggled to index blog posts and attach meaningful captions to the few pages that it did capture. This is because none of these blog posts have static URLs, they are just URL params attached to the end of the
Formatting was a nightmare. Sure, the Tumblr v1 API lets me use a raw HTML editor to format my Tumblr posts, which means I somewhat control how they display on my website. But Tumblr is notorious for infecting posts with their custom nonsense, like figure tags I never wanted, and metadata all over the place. It was a nightmare writing posts on Tumblr, because if I ever clicked into the WYSIWYG editor by mistake, all of my custom HTML was instantly nuked.
An impractical, albeit fun, excursion.