Tweet random posts from a Ghost blog using AWS Lambda

If you’ve got a Twitter account, and a blog with a lot of content, sharing your posts can be a nice way to help someone out, and drive a little extra traffic to your site. Here’s how you can automate the process on your Ghost blog - for free!

June 1, 2018

Manage blog posts, tags, and users with Ghost API v5.0

The Ghost API provides access to your blog’s posts, tags, and users. You can get items, as well as create them. Before accessing anything though, you’ll need several pieces of data, depending on your blog settings and whether you’re trying to get data or create it. Let’s see what we can do with it.

February 8, 2018

Creating a table of contents for your blog

A table of contents is convenient for visitors, so I wrote a script to generate one for any blog automatically!

February 3, 2018

How to Autolink All Images in Ghost to the Full Resolution

The Problem When you insert an image into a post using the Ghost platform, it might be displayed as much smaller, depending on your theme. Viewing the full version means either opening the image in a new tab or linking the image to itself so that clicking on it opens it up outside of the context of the page. Either way, someone’s doing manual work, so let’s automate it! The Solution Here’s a snippet of JavaScript code you can insert under “Blog Header” in the “Code injection” section of your Ghost blog, or in a separate file if you’re self-hosting and have access to where the themes are uploaded. ...

January 22, 2018

Safely Build on a Ghost Theme

As of this writing, my blog runs on the Ghost platform, and I was mildly surprised when I ran a ghost update the other day and suddenly my custom themes and scripts were just gone! Luckily I use DigitalOcean with backups enabled, and I had a backup from just a couple days before. I rolled back, verified my styles and customizations were present, then ran ghost update again. Wiped out. In retrospect, this makes sense. There are going to be updates to Casper, the default Ghost theme, and how should they reconcile that with any local changes I’ve made? They can’t reasonably, so they just overwrite it. WordPress had the concept of child themes, which allowed for extending a base theme, so I attempted to do something similar with Ghost. ...

July 24, 2017

5 Quick Hacks for Your Ghost Theme

These “hacks” for Ghost add some cool features to any blog, and should be usable with any theme.

April 1, 2017

Migrating a Blog from WordPress to Ghost

About a week ago I decided to migrate my blog to the Ghost platform. I’d been thinking about it for awhile - even installed it once or twice to play around with it - but never fully committed. Truth is, I didn’t really want to switch. I knew that, however little, the process would certainly be more painful than doing nothing. So the pain of going through the switch had to be outweighed by the pain of not switching. I guess that finally happened. ...

March 26, 2017