Syntax highlighting in your Ghost blog with Prism.js

To make code and markup such as XML and HTML easier to read on a website, you should use syntax highlighting. Ghost does not have built in syntax highlighting out of the box, but its quite easy to add it! Theres a library called Prism.js (by Leah Verou) that can add such a feature to your website. Setting up Prism Go to the prism download page, and select a theme, and which languages you would like highlight support for.

» Read more

Customize the favicon of your Ghost blog

To use a custom favicon for your Ghost blog: Copy your favicon.ico file to the /assets folder inside your theme folder (/blog/content/themes/themeName/assets). Open the default.hbs file of your theme On line ~15 replace <link rel="shortcut icon" href="{{asset "favicon.ico"}}"> with <link rel="shortcut icon" href="{{asset "/favicon.ico"}}"> Save the default.hbs file, and refresh your blog. That's really all there is to it. Ghost uses this default

» Read more

Add an "Edit" link to your blog posts in Ghost

A thing I was missing after switching from Wordpress to Ghost, was the "Edit post" link on each article, which was only showing if I was logged in. It's easy to achieve the same thing in Ghost too. Heres how: Include this javascript in your default.hbs file, somewhere before the {{{body}}} tag, either as file include, or just inline linke this: <script type="text/javascript"> var sessionKey = "ghost:session"; function getLocalStorage(key) { var item = localStorage.getItem(key)

» Read more
Author image Tagged Ghost

Switching from Wordpress to Ghost blog engine

I have now taken the plunge, and migrated away from the clunky Wordpress, and onto a new world of asynchronous javascript, Markdown and minimalism! Wordpress was getting more in the way, instead of making it easier to write blogposts. I ended up writing my posts in markdown in Mou, before posting it directly in Wordpress, instead of using their WYSIWYG editor (which usually just screws up my formatting...) I am so sick of Wordpress' wysiwyg editor ruining my formatting with

» Read more