Quick-search for anything


Usage: {{twitter_url}} or {{twitter_url @site.twitter}} or {{twitter_url "myfavouritepage"}}


This helper exists to make it easy to output a URL for a twitter page. Ghost has access to twitter page names/usernames for both users and for the site itself. When used without passing a username, the helper will look for a twitter username in the current template context, and then fallback to using @site.twitter.

If there is no twitter username set, the helper will output nothing at all.

If you pass a variable or string to the helper, it will concatenate the value with the full url for a twitter page.


Output the author’s twitter, using an author block:

{{#foreach posts}}
    {{#if twitter}}<a href="{{twitter_url}}">Follow me on twitter</a>{{/if}}