Ghost Blog

Installing Ghost localy

To install ghost you need to dead the instruction on the readme file of ghost repository as well as this under installation/set up instruction to view it visit

Also look form more details in config.js as well as on index.js. To add your own domain change config.js (around line:51, at this time of writing) to put your own domain name

To start ghost from ghost root run this npm start. To access ghost go to http://localhost:2368/ If you get this error: Javascript files have not been built. Just run this command: grunt init If you get an error saying can not find a specific module do npm install <modulename> then do npm install to install all dependencies


Themes are located @ content->themes. To log in navigate here;


New themes should be put under content/themes if it does not appear just stop ghost and start it again and then go to ghost/settings/general/ again and you should see it.

Static pages

To create a static page all you have to do is when you create a page make sure you tick a box to indicate that is it statis page, this is in the admin interface then in the code you create a page as follows: Page-<nameofyourpage> eg if you have a page like /portfolio then you would need to create sth like page-portfolio.hbs

This page layout is controlled by page.hbs other post are controlled by default.hbs

Default Theme

Default theme for ghost is casper


To create a partial create .hbs file e.g. footer.hbs, this can be placed within a directory then to call the partial use this syntax:

{ {> footer} }


Ghost can use mysql or sqlite. To open sqlite database copy the database to a directory then in terminal navigate to that directory and type this command:

# then after this you will be in sqlite, then type the following command:
.open <name-of-db>.db 

after this you can query the database how you like but for e.g. you can issue this query:


that will show all the tables in that database.


Everything you need is within /content/ folder.

  • Themes:- this is where you put themes
  • Apps:- change or add new functionality to your blog
  • Images:- all the images uploaded to your blog are here
  • Data:- this is where content is stored i.e. db