Back to Documentations

Nubia Documentation

Theme version: 1.5.2 — 22 July 2022 Changelog

Theme Editing & Tools

Edit the theme files mentioned here with a code editor. I recommend Visual Studio Code, Sublime Text, or Atom. Don’t use TextEdit on Mac.

Once you finish, zip the theme files, and upload the final zip file to your Ghost website.

If editing the routes.yaml file, make sure to upload it after every change you make.

Watch the following short video tutorial about theme editing.

If you are looking for Ghost hosting, I recommend Ghost(Pro).

Table of Contents

Theme Installation

The first step is to unzip the downloaded package by double-clicking it on Mac or by right-clicking and selecting “Extract All” in Windows.

Inside the new folder nubia, you will find the theme file and an online documentation file.

Follow these steps to upload the theme to your website:

  1. Log in to your Ghost website admin (
  2. Click the settings icon ( ) at the bottom of the left-hand side.
  3. Go to Design > Change theme.
  4. Click Upload theme and select the theme file.
  5. Once uploaded, click Activate now to activate Nubia.

Upload the routes.yaml File (⚑ Required)

To upload the file, follow these steps:

  1. Unzip the theme file.
  2. In your Ghost admin, click the settings icon ( ) at the bottom of the left-hand side.
  3. Go to the Labs.
  4. Scroll down to the Routes section and click the Upload routes YAML button.
  5. Select and upload the routes.yaml file inside the theme folder.
Upload a routes file in Ghost

Note: upload routes.yaml after uploading the theme zip

There will already be a default routes.yaml file uploaded to Ghost. You need to upload your theme’s routes.yaml to override the default.

Upload the routes.yaml file separately after uploading your theme zip file.

Members / Subscriptions

Nubia has different interface elements for membership feature.

  • Login In and Subscribe buttons in the header
  • Footer subscription form
  • If the post is set to Members Only, a Call to Action section on the Post page to encourage visitors to subscribe

Remove ‘Log In’ and ‘Subscribe’ from Header

Add the following CSS code into the Ghost admin Code Injection Site Header.

  .c-header .is-membership { display: none; }

Click Save. That’s all.

Remove Ghost Portal / The Bottom Right Button

This is the Ghost Portal button; you can disable it from the Ghost admin. More information at Portal Look and feel.

Remove Ghost Portal

Membership Troubleshooting Tips

If for any reason the subscribe form does not work, or there is an error message, the following tips might help:

  1. First, make sure you run the latest version of Ghost.

  2. If you are self-hosting your website, make sure to set up the mail config. After doing that, restart your Ghost server.

  3. The website config URL should match the URL used to access the website, as described in the Ghost docs.

Enter the URL that is used to access your publication. If using a subpath, enter the full path, If using SSL, always enter the URL with https://..

If you still have an issue using Ghost Pro, please contact the Ghost team. If you use any self-hosting provider, please contact them for help.

There is nothing to do from the theme side. Also, you can try the original theme demo to double-check that everything is working fine.

For more information about Members, connecting Stripe, and setting the package price, check the official Ghost documentation.

You can add, edit, delete, and reorder the navigation menu in Ghost Admin from the Settings → Navigation page.

Ghost navigation menu

To include a static page on your navigation menu, follow these steps.

First, type the page’s name in the label field as you’d like it to appear on your menu.

Ghost label field

Next, click on the item’s URL. The blog URL will already be auto-populated. Add the page slug after the final /. When satisfied with your page configurations, click the Save button.

Secondary Navigation

Currently, the theme shows the Ghost Primary Navigation in both the header and footer.

To show the Secondary Navigation items in the footer section, open the partials/footer.hbs theme file using a code editor and replace line 20 with the following line.

{{ navigation type='secondary' }}

Once you finish, zip the theme files, and upload the final zip file to your Ghost website.

Like Header Navigation, you can add the footer navigation links from the Ghost admin Settings → Navigation > SECONDARY NAVIGATION.

Nubia uses the Ghost Native Search.

  1. Go to your Ghost admin Settings > Design > Site design > Site-wide
  2. Toggle the Show search option off
  3. Click Save


Manage pages for Tags, Authors, and Contact from the Pages section of Ghost admin.

Tags Page

Follow these steps to create the Tags page:

  1. From the Ghost admin Pages section, create a new page and give it a title, like “Tags”.
  2. From Page settings, select the Tags template.
  3. Publish the page.
  4. To add the page to the navigation, please check the Navigation section.
Ghost Tags Page

Note for Self-hosters

If you are self-hosting your website, you may need to do a server restart. This should get the Tags option to show up in the Template dropdown.

Authors Page

To create the Authors page:

  1. Create a new page and give it a title, like “Authors”.
  2. From Page settings, select the Authors template.
  3. Publish the page
  4. To add the page to the navigation, please check the Navigation section above
Ghost Authors Page

Note for Self-hosters

If you are self-hosting your website, you may need to do a server restart. This should get the Authors option to show up in the Template dropdown.

Contact Page

To create the Contact page:

  1. Create a new Page and give it a title, like “Contact”.
  2. Add your content and the contact form code using Formspree as a service. Please check the code example below.
  3. Publish the page.
  4. To add the page to the navigation, please check the Navigation section.
<form action="" method="POST">
  <input type="text" name="name" placeholder="Name">
  <input type="email" name="_replyto" placeholder="Email">
  <textarea name='message' placeholder="Message"></textarea>
  <input class='c-btn' type="submit" value="Send">

For more information, check out How to Add a Contact Form to Your Ghost Blog.


To enable Disqus as a comments system, open the partials/disqus.hbs theme file using a code editor. Replace the aspirethemes-demos value with 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';

Once you finish, zip the theme files, and upload the final zip file to your Ghost website.

From the theme side, that’s all you need to set up Disqus. If you have any issues with comments not loading, make sure you have registered your website with Disqus (Step 1).

If you still have issues, check the Disqus troubleshooting guide.

Disable Disqus

To disable Disqus comments, copy and paste the following CSS code into the Ghost admin Code Injection Site Header.

  #disqus_recommendations, #disqus_thread { display: none; }

Disable Disqus Recommendations/Ads

Checkout the Disqus Recommendations documentation.

Disable Disqus Recommendations/Ads

Disqus Issues

If you have any issue with Disqus redirecting to any advertising pages, please disable Tracking and Affiliate Links from your Disqus account.

Check out Keegan Leary’s blog post about this issue at

Also, be aware of Disqus trackings. Check out

So, you might want to use another commenting system.

Thanks for sharing, Keegan!

Autoload Disqus

If you want to autoload Disqus without clicking the Comments button, open the partials/disqus.hbs theme file using a code editor and replace the file content with the following code.

<div id='disqus_thread'></div>
  var disqus_shortname = 'aspirethemes-demos'; // required: replace `aspirethemes-demos` with your Disqus shortname

  var disqus_config = function () { ='{{url absolute="true"}}' = 'ghost-{{comment_id}}';

  var d = document, s = d.createElement('script');

  s.src = 'https://' + disqus_shortname + '';

  s.setAttribute('data-timestamp', +new Date());
  (d.head || d.body).appendChild(s);

If you want to add an advertisement widget to your sidebar, this widget is the way to go. This will enable you to add an image and a URL associated with it, all you need to do is:

  • Replace your custom image with the image located in the theme directory (assets/images/advertise-image.jpg).
  • Update partials/sidebar/widget-advertise.hbs file with the URL (href) value.
  • Add an alternative text to the image (alt value) like the following image.
Advertise Widget Code

Remove Advertise Widget

If you want to remove the Advertise Widget, you can remove or comment the {{> sidebar/widget-advertise}} line inside the partials/sidebar.hbs file.

Sidebar Partials Code

Posts Per Page

You can control how many posts display per page from the package.json file.

"config": {
  "posts_per_page": 11

The theme default value is set to 11 posts per page.

Related posts section will be visible at the bottom of a post if other posts share the same tags as the current post.

Google Analytics

To integrate Google Analytics, I recommend using the Google Analytics integration by Ghost.

Update Favicon

You can change the favicon from the Ghost admin Settings > Design > Site design > Brand > Publication icon.

Responsive Tables

Responsive tables are required and essential for adding tabular content and allowing tables to be scrolled horizontally. You can make any table responsive across all viewports by wrapping a table with .responsive-table, for example:

<div class='responsive-table'>

Social Sharing Icons

You can customize and update a post’s social media sharing icons from the partials/share.hbs theme file.

Footer social media links are placed in the partials/social-icons.hbs file.

Ghost supports adding Facebook and Twitter profile URLs from the admin panel. Go to General > Social accounts and add your URLs. This will update Facebook and Twitter URLs within the footer social media section.

Ghost CMS Theme Social Accounts

Available Social Media Icons

The theme uses Evil Icons to provide simple and clean icons for other social accounts. Here you can find a list of the social media icons to use:


<span class='c-social-icons__icon' data-icon='ei-sc-facebook' data-size='s'></span>


<span class='c-social-icons__icon' data-icon='ei-sc-github' data-size='s'></span>


<span class='c-social-icons__icon' data-icon='ei-sc-instagram' data-size='s'></span>


<span class='c-social-icons__icon' data-icon='ei-sc-linkedin' data-size='s'></span>


<span class='c-social-icons__icon' data-icon='ei-sc-odnoklassniki' data-size='s'></span>


<span class='c-social-icons__icon' data-icon='ei-sc-pinterest' data-size='s'></span>


<span class='c-social-icons__icon' data-icon='ei-sc-skype' data-size='s'></span>


<span class='c-social-icons__icon' data-icon='ei-sc-soundcloud' data-size='s'></span>


<span class='c-social-icons__icon' data-icon='ei-sc-telegram' data-size='s'></span>


<span class='c-social-icons__icon' data-icon='ei-sc-tumblr' data-size='s'></span>


<span class='c-social-icons__icon' data-icon='ei-sc-twitter' data-size='s'></span>


<span class='c-social-icons__icon' data-icon='ei-sc-vimeo' data-size='s'></span>


<span class='c-social-icons__icon' data-icon='ei-sc-vk' data-size='s'></span>


<span class='c-social-icons__icon' data-icon='ei-sc-youtube' data-size='s'></span>

As mentioned above, Ghosts supports adding only Twitter and Facebook links from the admin. But the theme comes with other social icons in the sidebar. Edit or update these in the partials/sidebar-social-icons.hbs file. For example, here’s the Instagram code block:

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

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

Next, replace your Instagram full URL with the link href value. If your Instagram URL is:

Then the new code will be:

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

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


Nubia ships with many languages already. But if you’d like to add another one, you’ll be able to do that too.

Theme Translation

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

To use a language other than English, go to your Ghost admin Settings > General > PUBLICATION INFO and enter the ISO Code into the Publication Language field.

The following is a list of the available theme languages with the code to use.

  • da for Danish
  • de for Germany
  • du for Dutch
  • en for English
  • es for Spanish
  • fi for Finnish
  • fr for French
  • it for Italian
  • pt for Portuguese
  • tr for Turkish
Ghost Publication Language Setting

Add a New Language Translation

If the theme does not have a translation for your language, follow the following steps to add a new language translation.

  1. Create a new file using a code editor in the theme’s locales folder with the ISO Language Codes code. Foe example, if the new language is Japanese, the ISO code will be jaand the file name will be ja.json.
  2. In the same locales folder, open the en.json file and copy its content into your new language file.
  3. Start translating, as shown in the following Edit Translation section.
  4. Go to your Ghost admin Settings > General > PUBLICATION INFO and enter your language ISO code into the Publication Language field. For example, ja.
  5. Click Save settings.

Once you finish, zip the theme files, and upload the final zip file to your Ghost website.

You may want to restart Ghost or deactivate and activate the theme again to make the new changes effective.

Edit Translation

To improve or edit a translation in a specific available language, you can open the language file using a code editor in the locales folder:

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

For example, the German translation file looks like this:

  "Loading": "Beladung",
  "More Posts": "Mehr Artikel",

  "Recent Posts": "kürzliche Artikel",
  "Featured Post": "Featured Artikel",
  "Page Not Found": "Seite nicht gefunden",
  "Comments": "Bemerkungen",
  "You Might Be Interested In": "Sie könnten daran interessiert sein",
  "Authors": "Autoren",
  "Navigation": "Navigation",
  "Newsletter": "Newsletter",
  "Advertise": "Werben",
  "Tags": "Stichworte",
  "1 min read": "1 minuten gelesen",
  "% min read": "% minuten gelesen",
  "Published with {ghostLink} & {themeLink}": "Veröffentlicht mit {ghostLink} & {themeLink}",

  "Share on Twitter": "Auf Twitter teilen",
  "Share on Facebook": "Auf Facebook teilen",
  "Share on LinkedIn": "Auf LinkedIn teilen",
  "Share on Pinterest": "Auf Pinterest teilen",
  "Share via Email": "Teilen Sie per E-Mail",
  "Copy link": "Link kopieren",
  "Link copied to clipboard": "Link in die Zwischenablage kopiert",

  "Search": "Suche",
  "Search {siteTitle}": "Suche {siteTitle}",
  "Type to Search": "Tippe um zu suchen",

  "Account": "Konto",
  "Log In": "Einloggen",
  "Subscribe": "Abonnieren",
  "Your email": "Deine E-Mail-Adresse",
  "Please check your inbox and click the link to complete the login.": "Bitte überprüfen Sie Ihren Posteingang und klicken Sie auf den Link, um die Anmeldung abzuschließen.",
  "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.",

  "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",
  "This post is for subscribers on the ": "Dieser Beitrag ist für Abonnenten der ",
  "Upgrade your account": "Aktualisieren Sie Ihr Konto",

  "Join the newsletter to receive the latest updates in your inbox.": "Treten Sie dem Newsletter bei, um die neuesten Updates in Ihrem Posteingang zu erhalten"

Each line consists of a left key ("More Posts") and a right value ("Mehr Artikel").

The key is plain English that exists in all translation files and should not be changed. You should change only the value.

If you have any suggestions to improve a current translation or add a new language, please contact me.

Portal Text & Translation

There is no way to change or translate the Portal text yet. The Portal is not part of the theme files but a core Ghost component.

I suggest reaching out to the Gost team ( ); so they might work on this issue or have a workaround.

Multiple Languages Support

The theme supports Ghost translations for different languages, which means if you set the site language to French, some parts of the theme will change to French, for example, button labels.

On the other hand, having multiple languages on one website is not supported out of the box in Ghost, so the theme. This guide by Ghost explains how to configure multiple languages. I have not tried it, but it might be a good starting point.

Syntax Highlighting

You can add a fenced code block by placing triple backticks ``` before and after the code block. For example:

pre {
  background-color: #f4f4f4;
  max-width: 100%;
  overflow: auto;

Will produce the following gray look:

Nubia Ghost Theme Syntax Highlighting

To highlight a code block, add the language alias like css or js to the code block. For example, the CSS code in the previous example will wrap between ```css and ``` as follows:

pre {
  background-color: #f4f4f4;
  max-width: 100%;
  overflow: auto;

This will produce the following colored look:

Nubia Ghost Theme Syntax Highlighting with prismjs

To add inline code, wrap the text between two backticks ` `.


Nubia ships with Prism.js, a lightweight, robust, and elegant syntax highlighter.

The initial Prism package includes some languages, like Markup, CSS, C-like, and JavaScript.

You can add support for more languages. For example, to add support for PHP, get the PHP component script from Prism CDN.

<script src=""></script>

From the side admin menu, go to Code Injection and add the script to the Site Footer section. Be sure to click Save.

Nubia Ghost Theme Syntax Highlighting Code Injection PHP Prism

Post Feature Image Size

An image width of (800px × 445px) would fit the homepage cards and the post header.

You can also use an image with a double size (1600px × 890px) for a high-resolution image preview.

Theme Deploy with GitHub Actions

Nubia comes integrated with the Deploy Ghost Theme Github action. The purpose of the GitHub action is to take the theme from the GitHub repo and send it to your website.

Nubia documentation Ghost CMS Theme GitHub Actions

I have written about this in How to Deploy Your Ghost Theme Using Github Actions. All you need to do is follow steps 1 and 2.

The Deploy Ghost Theme action is software by Ghost and works with any Ghost install, whether you self-host Ghost or use Ghost Pro.

Code Injection

Another choice for customization is to use the Ghost Code Injection settings in Ghost admin.

For a CSS example, you can use the following code in the Site Header section to change the logo color and font size.

  .c-logo__link {
    color: #4550E5;
    font-size: 32px;

Watch the following short video about Ghost Code Injection, how it works, and how to use it.

Checkout How to use Code Injection Ghost gude for more information.

Customize Logo Size

If you are using an image as a logo (instead of the site name) and want to change the logo size, use the following code in Code Injection.

  .c-logo__img {
    max-width: 32px;

  @media (min-width: 40em) {
    .c-logo__img {
      max-height: 64px;

  @media (min-width: 64em) {
    .c-logo__img {
      max-height: 96px;

The theme changes the logo size value in 3 different sizes.

  1. 32px for mobile size
  2. 64px for medium size screens
  3. 96px for large screens

Change the values to match your preferences.

If you want to change only in mobile size, use the following code.

  @media (max-width: 40em) {
    .c-logo__img {
      max-height: 32px;

If the logo image has a large white space around it, trim that space with a photo editing app for better results.

Remove Dates

To remove the post date from the post cards and article page, edit the following theme files.

  • partials/post-hero.hbs file for the article page
  • partials/post-card.hbs file for the homepage cards

So, you can remove the HTML <time> lines, save, and upload your theme.

Disable Dropcaps

To remove the dropcap style, add the following code into the Ghost admin Code Injection Site Header.

  .c-content>p:first-child::first-letter {
    float: none;
    height: auto;
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;

Dark Mode

Nubia Ghost Theme Dark Mode

To enable the dark mode version, open the default.hbs theme file using a code editor and change line 10 to be {{> compiled/inline-css-dark }} instead of {{> compiled/inline-css }} as:

Nubia Ghost Theme Activate Dark Mode

Save the file and upload the theme to your Ghost blog.

Change Accent Color

To change the theme accent color, copy the following code into the Ghost admin Code Injection Site Header and change the accent color from #b70038 to your color.

  :root {
    --color-accent: #b70038; /* Change #b70038 to your color */

  .c-footer-list a:hover,
  .c-content a:not(.c-btn):hover,
  .c-content > p:first-child::first-letter {
    color: var(--color-accent);

  .c-btn--active:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);

  .c-post-card:hover .c-post-card__title-link,
  .c-subscribe-form__input[type="email"]:focus {
    border-color: var(--color-accent);

You can update the footer copyright line information from the theme partials/footer.hbs file. Open and edit that file using a code editor.


Read more about AMP at Google AMP + Ghost

The theme didn’t have an AMP file; the Ghost default/core one will be in use instead. If you want to customize it, you can add the default Ghost template to the theme folder and customize it.

Theme Development

This section is for developers only, and I assume you know what you are doing.

If you need to add custom CSS code, I highly recommend using Code Injection to avoid redoing your customizations with future theme updates.

Changing any .hbs file, for example, post.hbs, does not require being in development mode with gulp running. Just edit the file in your preferred editor and upload it.

If you are a developer and need to do heavy customization work, the theme uses Gulp to compile Sass and JavaScript. This improves the development flow and makes it much faster.

First, make sure you have Node.js, npm, Gulp CLI, and Bower installed. Check My Current Setup.

Run the following command in the theme root directory to install npm and bower dependencies.

npm install

To start Gulp, run:


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

Gulp will produce two files:

assets/js/app.min.js: The final main JavaScript file.

This file is generated from many other JavaScript files listed in the gulpfile.js file. Gulp will do all the work to create that file, so no manual work is needed.

Gulp will watch your changes in the assets/js/app.js or assets/js/ghosthunter.js (if exist) and will then generate the final app.min.js file.

partials/compiled/inline-css.hbs: The final CSS file. It is used as an Internal CSS in the theme partials/head.hbs.

This file is generated from the assets/css/style-min.css file, which was generated by Gulp.

If you are working with Gulp, you should avoid editing these files. Instead, do customizations in assets/sass for CSS or in assets/js/app.js JavaScript. This way, you can ensure the flow is going in the right direction and never lose any changes.

My Current Setup

In case you are wondering what my current environment setup is and which package versions I use, take a look at the following:

$ node -v

$ npm -v

$ bower -v

$ gulp -v
CLI version: 2.3.0
Local version: 4.0.2

This environment works well for running Ghost and also for theme development.

I use macOS Monterey / M1 Chip.

You don’t have to have the exact environment setup, so that’s fine if your current setup works.

Zip Theme Files

Use one of the following three options to create a zip file ready to upload to your Ghost website.

➊ Using your computer program

You can compress it as a standard folder like any other folder on your computer. If you are on Mac, right-click on the theme folder to view the context menu. Then, click the Compress option.

Ghost theme zip on macOS

➋ Using the command line

zip -r nubia -x '*.git*' '*node_modules*' '*bower_components*'

This command will exclude the node_modules and bower_components in case you are running gulp. And in case you are using Git, it will remove the .git folder.

➌ Using Gulp

Use the gulp zip command if you are running gulp.

Theme Update

You may be wondering how I can update my theme to the latest version?

There are two choices:

  • Keep your current theme and replace only the changed files from the new version. You can find the modified files on the theme page Changelog
  • Use the latest version as a starting point and redo your theme changes and customizations

One way to reduce the need for redoing customizations is to use the Code Injection tool. This is very helpful for adding custom CSS and tracking code. Keeping your custom CSS code with Code Injection is always recommended.


Have any questions? I’m here to help.

Contact Ahmad
Ahmad Ajmi