Improving SEO

While at it's core, Ghost is well-built and optimized for SEO, there are still a few things you can do to help Google and other search engines better index your site.

Adding A Robots.txt File

First off, you can add a Robots.txt file into the root of your Ghost folder. In our case (following the configuration for Digital Ocean above, that is the "/var/www/ghost" directory).

You'll need to manually add the file and make sure it contains the following code:

User-agent: * 

Disallow: /ghost/

Here is the final result (robots.txt is the last file in this directory):

Creating A Sitemap

Official sitemap support is still coming. The best way to deal with this at the moment is to follow these steps:

The the site will appear in the listing:

  • Click on the name of the site
  • Along the left hand menu, select "Crawl" > Sitemaps

  • Click on "Add a sitemap" and enter your RSS URL (myblog.com/rss)

Come back in a day or two and Google will have index your site.