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

East - Ghost


👋 Looking for Ghost Hosting?

Try Ghost free for 14 days on a fully managed Ghost(Pro) infrastructure.

Try Ghost Pro

Current Version: 1.2.7 - 6 Nov 2019



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 (east.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.

Create a new Content API Key

In order for the Search to work, we need to generate a new Content API Key using the following steps.

From Ghost admin, click Integrations from the sidebar menu, then click + add custom integration.

Add new Ghost Custom integrations

Then, give the new integration a name, for example, Search and click Create.

Name for the Ghost Custom integrations

Now, a new Key is created, hover over it and new Copy button will appear, click on it to copy the Key to the clipboard.

Copy Ghost Custom integrations Content API Key

Next, click Code injection from the sidebar menu and add the following code to the Blog Header box after replacing the XXXX value with your API KEY.

<script>
  var search_api_key = 'XXXX';
</script>

To be like:

Inject Ghost Custom integrations Content API Key

Click Save.


Members / Subscription

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

enable subscribers

Once enabled, different parts of the theme will appear:

  • Login In and Sign Up links in the sidebar.
  • Post subscription form if the visitor is not a member or a subscriber.
  • Call to action section in Post page to encourage visitors to subscribe if the post is set to Members only.

In order for the blog to fully supports member sign up flows and subscriptions, within the theme folder is a routes.yaml file. Upload this single file using Routes on the Labs page.

Upload a routes file in Ghost


To edit plans features, you can edit the partials/signup-plans.hbs file.

Subscription plans in Nubia


To remove Login In and Sign Up links in the sidebar, you can edit the partials/sidebar.hbs file and remove lines from 21 to 29.


For more information about Members, connecting Stripe and setting the package price, I highly recommend checking the official Ghost documentation.


Static Pages

To create a static page, you can start creating a new Post. While you are on the post 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 post to a static page.

static page


You can add, edit, delete and reorder menu links on your Ghost blog from the Navigation section in the admin area located at ghost/#/settings/design.

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 on the URL field of the menu item and we can find that the blog URL is already auto-populate for us. We will need to add the page slug after the final /. Once satisfied with our page configurations. Clicking the blue Save button will add the page to the navigation menu.


For the search to work, please make sure to Create a new Content API Key.

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

The supported languages in addition to English are Russian, French, Spanish, Germany, Portuguese, Italian, Finnish, Dutch and Danish.


Tags Page

To create the Tags page:

  • Create a new Post and call it Tags for example.
  • Click the Turn this post into a static page checkbox.
  • Select the Tags template from the Template dropdown.
  • Publish the page.
  • To add the page to the navigation, please check the Navigation section above.

Ghost Tags Page


Disqus Comments

East Theme comes with Disqus comments enabled.

Open partials/disqus.hbs file, and change the aspirethemes-demo 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.

Disable Disqus

If you want to disable Disqus comments. Open the post.hbs file and comment or delete line 110 contains the {{> disqus}} text.


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
}

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


Google Analytics

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


Social media links are placed in:

  • partials/sidebar.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 location 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 existed and static social links, let’s take an example from partials/sidebar.hbs file, for example, the Instagram code block:

<li>
  <a href='https://instagram.com/{{! Add Instagram handle }}' target='_blank'>
    <span 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 username with {{! Add Instagram handle }} value, so if your Instagram username is ghost, the new code will be:

<li>
  <a href='https://instagram.com/ghost' target='_blank'>
    <span 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.


You can update or delete the copyright information in the partials/sidebar.hbs file (line 67).


Update Favicon

You can change the favicon in Ghost from the Admin > General > PUBLICATION IDENTITY > Publication icon from the Publication icon section.

Update favicon


Theme Translation

East 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 Admin > General > PUBLICATION INFO> 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 %)",

  "Featured Post": "Featured Artikel",
  "Comments": "Bemerkungen",
  "Newsletter": "Newsletter",
  "1 min read": "1 minuten gelesen",
  "% min read": "% minuten gelesen",
  "Published with {ghostLink}": "Veröffentlicht mit {ghostLink}",

  "Share on Twitter": "Auf Twitter teilen",
  "Share on Facebook": "Auf Facebook teilen",
  "Share via Email": "Teilen Sie per E-Mail",

  "Search": "Suche",
  "Type to Search": "Tippe um zu suchen",

  "Log In": "Einloggen",
  "Sign Up": "Anmelden",
  "Continue": "Fortsetzen",
  "Subscribe": "Abonnieren",
  "Subscribe Now": "Abonniere jetzt",
  "Your email ": "Deine E-Mail-Adresse",
  "Please check your inbox and click the link to confirm your subscription.": "Bitte überprüfen Sie Ihren Posteingang und klicken Sie auf den Link, um Ihr Abonnement zu bestätigen.",
  "Please enter a valid email address!": "Bitte geben Sie eine gültige E-Mail-Adresse ein!",
  "An error occurred, please try again later.": "Ein Fehler ist aufgetreten. Bitte versuchen Sie es später erneut.",

  "You've successfully subscribed to {siteTitle}": "Sie haben {siteTitle} erfolgreich abonniert.",
  "Great! Next, complete checkout for full access to {siteTitle}": "Toll! Schließen Sie als Nächstes die Prüfung ab, um vollen Zugriff auf {siteTitle} zu erhalten.",
  "Welcome back! You've successfully signed in.": "Willkommen zurück! Sie haben sich erfolgreich angemeldet.",
  "Success! Your account is fully activated, you now have access to all content.": "Erfolg! Ihr Konto ist vollständig aktiviert, Sie haben nun Zugriff auf alle Inhalte.",

  "Already have an account?": "Hast du schon ein Konto?",
  "Don't have an account yet?": "Sie haben noch keinen Account?",

  "This post is for paying subscribers only": "Dieser Beitrag ist nur für zahlende Abonnenten",
  "This post is for subscribers only": "Dieser Beitrag ist nur für Abonnenten",

  "Choose your subscription": "Wählen Sie Ihr Abonnement",
  "Unlock full access to {siteTitle} and see the entire library of members-only content & updates.": "Schalte den vollen Zugriff auf {siteTitle} frei und sieh dir die gesamte Bibliothek mit Inhalten und Updates nur für Mitglieder an.",
  "Sign Up to {siteTitle}": "Anmelden bei {siteTitle}",

  "Welcome back!": "Willkommen zurück!",
  "Log Into your account again.": "Melden Sie sich erneut in Ihrem Konto an.",
  "Send login link": "Anmeldelink senden",

  "Nice, you're a subscriber!": "Schön, dass Sie Abonnent sind!",
  "You have an active {siteTitle} account with access to all posts.": "Sie haben ein aktives {siteTitle} Konto mit Zugriff auf alle Posts.",
  "You're a subscriber to free members updates": "Sie sind Abonnent der kostenlosen Mitgliederaktualisierungen",
  "You are subscribed to free updates from {siteTitle}, but don't have a paid subscription to read all the posts.": "Sie haben kostenlose Updates von {siteTitle} abonniert, haben jedoch kein kostenpflichtiges Abonnement, um alle Beiträge zu lesen."
}

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.


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, Gulp CLI, 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.


Code Injection

Another option for customization, is to use the Ghost Code Injection settings in Ghost Admin. For a CSS example, you can use the following code to change the logo color as:

<style>
  .logo { font-size: 20px; }
</style>

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

zip -r east.zip east -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