Skip to content
Make Your Ghost Blog Beautiful & Make It Fast & Accessible With the New Ghost Theme: Nubia 😍 🎉

Aspire - Ghost


Current Version: 1.4.8 - 5 June 2018



Theme Installation

  • Log into the admin section of your Ghost blog yourblog.com/ghost.
  • Select Design from the left-hand side of your admin area and go to the Themes section.
  • Click on the Upload a Theme green button.
  • An upload box will open, then choose the theme (aspire.zip) within the downloaded package.
  • Once uploaded. Click on Activate now button to activate the theme immediately or Close if you want to activate it later.

Enable the Public API

The Public API is important for some functionality like search, tags page, and the subscribe form to work. You can enable the Public API from the Ghost admin. Go to Labs > Beta features section and check the Public API mark to enable it.

enable-public-api


Static Pages

To create a static page, you can start creating a new story. While you are on the story editor page, there is a cog wheel icon () at the top right. Click on that icon, and check the Turn this post into a page box. This will convert your story to a static page.

static page


You can add, edit, delete and reorder menu links on your Ghost blog, directly from the navigation tool within the blog admin area, located at /ghost/settings/navigation/.

navigation menu

To include a static page on your navigation menu, first, type the name of the page as you’d like it to appear on your menu in the label field.

label field

Next, click inside the URL field of the menu item. The blog URL will auto-populate with http://yourdomain.com/. You will need to add in the page slug after the final /. Once satisfied with your page link, click the blue Save button to add the page to the navigation menu.


For the search to work, please make sure that the Public API enabled.

The theme uses ghostHunter. Search is done for the post title and the content.


Tags Page

To create the tags page:

  • Enable the Public API.
  • Create a new story and call it Tags for example, and make sure that the POST URL is tags.
  • Click the Turn this post into a static page checkbox.
  • Publish the page.
  • To add the page to the navigation, please check the Navigation section above.

static page


Disqus Comments

Aspire Theme comes with Disqus comments enabled.

Open partials/disqus.hbs file, and change the aspirethemes-demos value for the disqus_shortname variable to match your Disqus account shortname.

var disqus_shortname = 'aspirethemes-demos';

So, if your Disqus shortname is exampleone, the final code above should be:

var disqus_shortname = 'exampleone';

That’s all you need to setup Disqus from the theme side. If you get any issue regarding that comments are unable to load. First, make sure you have registered your website with Disqus (Step 1)

And also check Disqus troubleshooting guide if you still have issues.


Twitter

To set up the Twitter feed:

  • Go to publish.twitter.com.
  • Enter a Twitter URL into the input box and press Enter.
  • Select Embedded Timeline.
  • You will see a Timeline preview and you can customize it as required.
  • Copy the code by clicking the Copy Code button.
  • Open partials/sidebar/widget-twitter.hbs file and replace line 4 with the copied code.
  • Save and you are done.
 

Instagram

New Ghost 1.0

The Instagram feed is working using Instafeed.js to show the photos.

First, you will need to get your account userId and accessToken from the following URLs:

Second, open the assets/js/instagram.js file and replace the userId and accessToken values.

var instagramFeed = new Instafeed({
  get: 'user',
  limit: 9,
  resolution: 'thumbnail',
  userId: '',
  accessToken: ''
});

You can control how much images to show by changing the limit number. Theme default is set to 9 images.

Old Ghost Versions

  • To generate a new Instagram feed for your account, please visit Instansive.
  • Customize the widget based on a username or hashtag, then you will get a code for the widget, open partials/sidebar/widget-instagram.hbs file and paste the code.

Posts Per Page

With Ghost 1.0, the Posts per page setting is now part of the theme. The config purpose is to control how many posts to show per page from the package.json file like this:

"config": {
  "posts_per_page": 12
}

Aspire theme default value is set to 12 posts per page.


Related posts will be visible on the single post in case there are similar posts sharing the same tags.

Enabling the Public API required.


Google Analytics

To integrate Google Analytics, I would recommend reading Google Analytics integration steps by Ghost.


Subscribe Form

Subscribers can be enabled via a checkbox on the Labs page (Labs > Beta features), in your Ghost admin panel:

enable subscribers

Once you enabled this feature, the form will appear in three places:

  • Footer
  • Single post page sidebar widget
  • Single post page after the article

You can read more about Subscribers Beta.


Social media links are placed in 3 different places (files):

  • partials/footer.hbs
  • partials/social-nav.hbs
  • partials/sidebar/widget-social.hbs

Ghost supports adding Facebook and Twitter profile URLs from the admin panel, go to General > Social accounts and add your URLs, this will update the Facebook and Twitter URLs within the 3 locations mentioned above.

social-accounts

For using other social accounts, the theme is using Evil Icons, which contains very simple and clean icons. Here you can find a list of the social media icons to use:

Facebook

<span data-icon='ei-sc-facebook' data-size='s'></span>

GitHub

<span data-icon='ei-sc-github' data-size='s'></span>

Google Plus

<span data-icon='ei-sc-google-plus' data-size='s'></span>

Instagram

<span data-icon='ei-sc-instagram' data-size='s'></span>

LinkedIn

<span data-icon='ei-sc-linkedin' data-size='s'></span>

Odnoklassniki

<span data-icon='ei-sc-odnoklassniki' data-size='s'></span>

Pinterest

<span data-icon='ei-sc-pinterest' data-size='s'></span>

Skype

<span data-icon='ei-sc-skype' data-size='s'></span>

SoundCloud

<span data-icon='ei-sc-soundcloud' data-size='s'></span>

Telegram

<span data-icon='ei-sc-telegram' data-size='s'></span>

Tumblr

<span data-icon='ei-sc-tumblr' data-size='s'></span>

Twitter

<span data-icon='ei-sc-twitter' data-size='s'></span>

Vimeo

<span data-icon='ei-sc-vimeo' data-size='s'></span>

VK

<span data-icon='ei-sc-vk' data-size='s'></span>

Youtube

<span data-icon='ei-sc-youtube' data-size='s'></span>

To edit or update other excisted and static social links, let’s take an example from partials/social-nav.hbs file, for exmaple, the Instagram code block:

<li class='c-social-nav__item'>
  <a href='#' aria-label='Instagram' target='_blank' rel='noopener'>
    <span class='c-social-nav__icon' data-icon='ei-sc-instagram' data-size='s'></span>
  </a>
</li>

The code above contains the ICON code from the above list, the social media link (a) within a list element (li).

Next, replace your Instagram full URL with the link href value so if your Instagram URL is:

https://www.instagram.com/ghost/

the new code will be:

<li class='c-social-nav__item'>
  <a href='https://www.instagram.com/ghost/' aria-label='Instagram' target='_blank' rel='noopener'>
    <span class='c-social-nav__icon' data-icon='ei-sc-instagram' data-size='s'></span>
  </a>
</li>

If you want to completely remove Instagram, you can delete all the code block, the li, a, and the icon.

This concept is applied to all the custom icon list available in the 3 social media places.


Update Favicon

New Ghost 1.0

The favicon in Ghost 1.0 could be changed from the Blog settings from the Publication icon section.

Update favicon

Old Ghost Versions

You can find the current favicon inside the theme assets directory, just replace it with your new favicon, then upload to the server.

Update favicon


Theme Translation

Nubia supports Ghost i18n and comes with German, Italian, Spanish, French Finnish, Portuguese Dutch and Danish translation.

To use another available language than English, go to Ghost’s Settings > General > Publication language and enter the Language Code Reference.

  • de for Germany
  • it for Italian
  • es for Spanish
  • fr for French
  • fi for Finnish
  • pt for Portuguese
  • du for Dutch
  • da for Danish

Ghost Publication Language Setting

Add New Language

To add a new language, you can follow the steps in the Official Ghost Documentation.

Edit Translation

To improve or edit a translation in a specific available language. You can open the language file under locales folder:

|____locales
| |____da.json
| |____de.json
| |____du.json
| |____en.json
| |____es.json
| |____fi.json
| |____fr.json
| |____it.json
| |____pt.json

For example the Germany translation file will look like:

{
  "Next": "Weiter",
  "Previous": "Zurück",
  " (Page %)": " (Seite %)",
  "Page Not Found": "Seite nicht gefunden",
  "Recent Posts": "kürzliche Artikel",
  "Home Page": "Startseite",
  "Back": "Zurück",
  "Subscribe": "Abonnieren",
  "Subscribe to {blogtitle}": "Abonniere {blogtitle}",
  "Subscribed!": "Abonniert!",
  "with the email address": "mit der E-Mail-Adresse",
  "Email": "E-Mail",
  "Your email address": "Deine E-Mail-Adresse",
  "You've successfully subscribed to": "Du wurdest erfolgreich angemeldet für",
  "Enter your email below to join our newsletter": "Geben Sie Ihre E-Mail-Adresse unten ein, um unserem Newsletter beizutreten",
  "Featured Post": "Featured Artikel",
  "Share on Twitter": "Auf Twitter teilen",
  "Share on Facebook": "Auf Facebook teilen",
  "Share on Pinterest": "Auf Pinterest teilen",
  "Share on Google+": "Auf Google+ teilen",
  "Search": "Suche",
  "Search {blogtitle}": "Suche {blogtitle}",
  "Type to Search": "Tippe um zu suchen",
  "Published with {ghostlink}": "Veröffentlicht mit {ghostlink}",
  "You Might Be Interested In": "Sie könnten daran interessiert sein",
  "Newsletter": "Newsletter",
  "Follow": "Folgen"
}

Each line consist of a left key ("Next") and right value ("Weiter"). The key is a plain Englich which exist in all translation files and should not be changed. You can only change the value.

If you have suggestions to improve the current translations or added a new language. Please let me know. Instead, you can contribute to the online translations.


Theme Development

If you are a developer and need to do heavy customization work. The theme is using Gulp to compile Sass and JavaScript. This improves the development flow and making it much faster.

First, make sure you have Node.js, npm, and Bower installed. Run the following command in the theme root directory to install npm and bower dependencies.

npm install

To start Gulp, run:

gulp

This will compile Sass and JavaScript files, and start watching changes as you edit files.

Gulp will generate two files:

  • assets/js/app.min.js: The final main JavaScript file.
  • partials/compiled/inline-css.hbs: The final CSS file.

It’s recommended to avoid editing these files if you are working with Gulp. Instead, do customizations in assets/sass files for CSS or in assets/js/app.js for JavaScript. So, we can make sure the flow is going in the right direction and we never lost any changes.


Another option for customization, is to use the Ghost Code Injection feature.


To create a clean and small theme package. You can exclude different directories using the following command line:

zip -r aspire.zip maxima -x *node_modules* *bower_components* *git*

This will exclude node_modules, bower_components, and git directories from the final zip file.


👋 Support

Have any questions? Ahmad is always here to help 😊

Contact Ahmad