The Ghost Themes Developer Hub

Welcome to the Ghost Themes developer hub. You'll find comprehensive guides and documentation to help you start working with Ghost Themes as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

@blog

@blog Helper - Global data

The @blog property provides access to global data properties, which are available anywhere in your theme:

  • {{@blog.url}} – the url specified for this blog in your custom config file
  • {{@blog.title}} – the blog title from the settings page
  • {{@blog.description}} – the blog description from the settings page
  • {{@blog.logo}} – the blog logo from the settings page
  • {{@blog.cover_image}} – the blog cover image from the settings page
  • {{@blog.twitter}} – the twitter username from the settings page (see twitter_url)
  • {{@blog.facebook}} – the facebook username / page name from the settings page (see facebook_url)
  • {{@blog.navigation}} – the navigation information configured on the settings/navigation page (see navigation)
  • {{@blog.permalinks}} – the permalinks string which decides the format for post urls
  • {{@blog.timezone}} – the timezone as configured in settings

Example Code

<nav class="main-nav overlay clearfix">
    {{#if @blog.logo}}
        <a class="blog-logo" href="{{@blog.url}}"><img src="{{@blog.logo}}" alt="Blog Logo" /></a>
    {{/if}}
    <a class="subscribe-button icon-feed" href="{{@blog.url}}/rss/">Subscribe</a>
 </nav>

See the navigation helper for information on outputting navigation in your theme

@blog

@blog Helper - Global data