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

Bold - Ghost


Current Version: 1.1.6 - 28 March 2018



Theme Installation

This is a quick video showing how to install the theme, upload blog cover image, favicon, create the tags page, and update the profile information for the editor.


Also, you can follow the following steps to install the theme:

  • 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 (bold.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 properly. 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

In order to create a static page, we can start creating a new story, and while we 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


header left logo code

If you want to enable the left logo alternative header layout, open the partials/header.hbs file and add the c-header--left-logo to the header class and that’s all that you need to do.

header left logo


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/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.


Home Hero

home hero

The hero section shows the cover image and the blog description, which you can edit from the Blog Settings admin page.

The theme comes with description support for HTML tags. You can add normal tags like custom links or headings. The theme will automatically render them on the browser. For example, the demo description is the following:

<h2>Thoughts, Stories and Ideas.</h2>
<p>Don't cry because it's over, smile because it happened.
  <br>
  - <a href='https://en.wikipedia.org/wiki/Dr._Seuss'>Dr. Seuss</a>
</p>

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


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


Authors Page

To create the Authors page:

  • Enable the Public API.
  • Create a new post and call it Authors for example, and make sure that the POST URL is authors.
  • 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


Contact Page

To create the Contact page:

  • Create a new post and call it Contact for example.
  • Add your content and the contact form code using FORMSPREE as a service. Please check the code example below.
  • 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.
<form action="https://formspree.io/your@email.com" 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 c-btn--small c-btn--active' type="submit" value="Send">
</form>

For more information, check the How to Add a Contact Form to Your Ghost Blog blog post.


Disqus Comments

The 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.

Disable Disqus

If you want to disable Disqus comments, open the post.hbs file and comment or delete the line contains the {{> disqus}} text (line 31).

Disable Disqus


Instagram

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: 98,
  resolution: 'thumbnail',
  userId: '',
  accessToken: ''
});

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


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 the single post page and the footer.

You can read more about Subscribers Beta.


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": 6
}

Bold theme default value is set to 6 posts per page.



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:

Bold 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 be wrapped between ```css and ``` as following:

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

Will produce the following colored look:

Bold Ghost Theme Syntax Highlighting with prismjs


Bold shipped with Prism.js, a lightweight, robust, and elegant syntax highlighter.

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

You can add and support more languages. For example, to add support for PHP:

Get the PHP component script from Prism CDN.

<script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.13.0/components/prism-php.js"></script>

Add the script to Ghost Code Injection Blog Footer section. Click Save button.

Bold Ghost Theme Syntax Highlighting Code Injection PHP Prism


Related posts will be visible on the single post page when there are similar posts with similar tags, and will be hidden otherwise.

Enabling the Public API is required.


Google Analytics

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


Responsive Tables

Responsive tables are required and essential for adding tabular content and allows 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'>
  <table>
    ...
  </table>
</div>

Social media links are placed in:

  • partials/social-nav.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 class='c-social-nav__icon' data-icon='ei-sc-facebook' data-size='s'></span>

GitHub

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

Google Plus

<span class='c-social-nav__icon' data-icon='ei-sc-google-plus' data-size='s'></span>

Instagram

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

LinkedIn

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

Odnoklassniki

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

Pinterest

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

Skype

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

SoundCloud

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

Telegram

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

Tumblr

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

Twitter

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

Vimeo

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

VK

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

Youtube

<span class='c-social-nav__icon' 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.


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

Bold supports Ghost i18n and comes with German, Spanish, and French 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
  • es for Spanish
  • fr for French

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
| |____de.json
| |____en.json
| |____es.json
| |____fr.json

For example the Germany translation file will look like:

{
  "More Posts": "Mehr Artikel",
  "Loading": "Beladung",
  "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",
  "Featured Post": "Featured Artikel",
  "Share on Twitter": "Auf Twitter teilen",
  "Share on Facebook": "Auf Facebook teilen",
  "Share on LinkedIn": "Auf LinkedIn teilen",
  "Share on Google+": "Auf Google+ teilen",
  "Share on Pinterest": "Auf Pinterest teilen",
  "Search": "Suche",
  "Search {blogtitle}": "Suche {blogtitle}",
  "Type to Search": "Tippe um zu suchen",
  "Number of results found:": "Anzahl der gefundenen Ergebnisse:",
  "Newsletter": "Newsletter",
  "Published with {ghostlink}": "Veröffentlicht mit {ghostlink}",
  "You Might Be Interested In": "Sie könnten daran interessiert sein",
  "Tags": "Stichworte",
  "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 consist of a left key ("More Posts") and right value ("Mehr Artikel"). 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, then run the-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.


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

zip -r bold.zip bold -x *node_modules* *bower_components* *git*

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


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


👋 Support

Have any questions? Ahmad is always here to help 😊

Contact Ahmad