Gazette Documentation

Current Version: 1.2.0/2.2.0

Last updated: Jun 04, 2018

Link: Gazette Theme

Table of Contents

  1. Theme Info
  2. Install Theme
  3. Publication Settings
    1. Logo
    2. Icon
    3. Static Pages
    4. Navigation
    5. Public API
    6. Subscribers
    7. Language
  4. Customization
    1. Posts Per Page
    2. Custom Pages
    3. Social Media Links
    4. Disqus Comments
    5. Google Analytics
  5. Theme Development
  6. Credits
  7. Support
  8. Change Log

1. Theme Info

Name: Gazette - Ghost Theme
Description: a News & Magazine Ghost Theme
Released: 2017.02.24
Creator: Biron Themes

Requirements

Ghost version: 0.8 or higher 
Ghost Public API: Active
Ghost Subscribers Feature: Active (Optional)

2. Install Theme

  • Log in to your publication admin section at yourblog.com/ghost/signin
  • Go to Settings > Design from the admin menu
  • Under the Themes section click Upload a theme
  • Click inside the upload box to select a gazette.zip, or drag-and-drop the gazette.zip into the upload box
  • If you want to activate the theme immediately click Activate Now or Close if you want to do it later

3. Publication Settings

Some basic settings for your publication:

To Upload a new logo follow these steps:

  • Log in to your publication admin section at yourblog.com/ghost/signin
  • Click General under the settings menu.
  • Under Publication logo, click Upload Image and select your logo

Publication Logo

  • Finally click Save settings

3.2 Icon

To Upload a new icon follow these steps:

  • Log in to your publication admin section at yourblog.com/ghost/signin
  • Click General under the settings menu.
  • Under Publication icon, click Upload Image and select your icon

Publication Logo

  • Finally click Save settings

3.3 Static Pages

To create a static page within your publication, follow the steps below.

  • Log in to your publication admin section at yourblog.com/ghost/signin
  • Either create a New Story or edit an existing one.
  • Open the Post Settings Menu by clicking on the gear icon in the top right corner
  • Check the box to Turn this into a static page

Static Page

Click Publish or Update(for an existing story) at the top of the editor to publish the static page.


3.4. Navigation

To add menu items to your publication, follow the steps below.

  • Log in to your publication admin section at yourblog.com/ghost/signin
  • Click Design from the admin menu
  • Under Navigation, enter a label for the menu item in the label field
  • In the URL field, enter the destination for the menu item to link

Ghost Blog Navigation

  • Click Save

3.5. Public API

As mentioned in the Requirements section, this theme uses the public API, so in order to take advantage of all the theme features make sure the Public API is active.

As of Ghost 1.0.0, the Public API is enabled by default. You can check the settings going to the Labs page in your Ghost admin panel:

Public API

Make sure the Public API checkbox is checked.


3.6. Subscribers

This theme supports the Ghost subscribers feature. To activate the feature follow the steps below.

  • Log in to your publication admin section at yourblog.com/ghost/signin
  • Click Settings > Labs.
  • Check the box for Subscribers, under the Enable Beta Features.

Public API

If the feature is active, the subscription form will appear in the sidebar.

Subscribe feature

To view subscribers click Subscribers from the admin menu.


3.7. Language

To set the publication language follow the steps below.

  • Log in to your publication admin section at yourblog.com/ghost/signin
  • Go to General from the admin menu
  • Under Publication Language, click Expand and set the language/locale to be used on the site. The default is set to English (en).

Public API

  • Click Save settings

Language Code Reference


4. Customization

Different customizations for the theme.

4.1 Posts Per Page

From Ghost 1.0 the “Posts per page” settings was moved from the Ghost Admin to the theme. You can set it in the package.json of the theme:

"config": {
  "posts_per_page": 9
}

For Gazette the default value is 9, you can change it to whatever number you wish, we recommend a number that can be devided by 3.



4.2. Custom Pages

Gazette comes with 4 custom pages by default:

  • Contact Page
  • Categories Page
  • Team Page
  • About Page
Contact Page

To create the Contact page, do as follows:

  • Create a new story and call it Contact.
  • Make sure the the Post URL is contact.

Post URL

  • Check the box Turn this post into a page.
  • Click Publish.

To add the page to the navigation, please check the Navigation section above.

[Gazette Theme Contact Page]

Categories Page

To create the Catgories page, do as follows:

  • Create a new story and call it sections.
  • Check the box Turn this post into a page.
  • Click Publish.

To add the page to the navigation, please check the Navigation section above.

Team Page

To create the Team page, do as follows:

  • Create a new story and call it team.
  • Check the box Turn this post into a page.
  • Click Publish.

To add the page to the navigation, please check the Navigation section above.


The social media links are stored in a partial file partials/social-media.hbs.

Ghost supports Facebook and Twitter social accounts, to change them do the following

  • Log in to your publication admin section at yourblog.com/ghost/signin
  • Go to General from the admin menu
  • Click Expand under Social Accounts, and enter the URLs for your Facebook and Twitter.

Social Accounts

  • Click Save settings

To edit the other social links follow the steps below. Open up the social-media.hbs file and change the href value to your profile’s URL for that specific social platform.

  {{!-- Instagram --}}
  <a href="https://instagram.com" target="_blank">
    <i class="fa fa-2x fa-instagram" aria-hidden="true"></i>
  </a>

For example to change the Instagram link, you have to change the existing href value:

href="https://instagram.com"

Add your instagram accound link, example:

href="https://instagram.com/bironthemes"


4.4. Disqus Comments

Gazette comes with Disqus comments enabled.

Make sure you have registered your website with Disqus and you know your disqus_shortname.

Open default.hbs file located in the root folder. Change the biron-demo value for the disqus_shortname variable to match your Disqus account shortname.

{{!-- Disqus comments --}}
<script>
    // Replace 'biron-demo' with your disqus account shortname
    var disqus_shortname = 'biron-demo';
</script>

That’s all, Disqus comments should work now.

If you don’t want disqus comments to show delete the comments.hbs file located in the partials folder. And delete the following section from the post.hbs file located in the root folder of the theme:

{{!-- Include Disqus Comments --}}
{{> comments}}

4.5. Google Analytics

To add Google Analytics to Ghost follow this tutorial from Ghost.


5. Theme Development

Gazette is developer friendly, if you need to make advanced customization you will take advantage of the Gulp tasks that are set up for compiling Javascript and SASS/CSS.

All the assets are combined and minified for better speed and performance. In order to customize the theme make sure you have Node.js and npm installed.

Run the the following commands in the gazette theme directory:

npm install

This will install all the dependencies for the theme

Then run:

gulp

This will compile SASS/CSS and javascript and will watch for changes. So when you edit a .scss or .js file the change will trigger the gulp watch task and this will compile the assets with your changes.

If you want to comile sass or javascript separately, you can run:

gulp sass

For compiling SASS/CSS

Or:

gulp scripts

For compiling javascript files.

For more details on how to customize the theme check out How to customize our Ghost Themes

You also have the option to use Code Injection to do customizations. For example if you want to change the default color of the buttons, add the following code in the Blog Header section.

a.btn, button.btn {
    background-color: #333; // set it to your desired color
}

6. Credits

Gazette uses the following packages/plguins:

Images are not included in the download files!


7. Support

Don’t hesitate to contact us if you have suggestions or need help.

Contact


8. Change Log

---------  VERSION - 1.2.0/2.2.0: Release on 17 Feb 2018  ---------
[v1.2.0] - for Ghost 0.11.x
  [*] dependencies updated  
  [*] Style changes
  [*] Speed improvements

[v2.2.0] - for Ghost 1.x
  [+] Included new ghost features
  [*] improved styled and scripts
  [*] Speed improvements
---------  VERSION - 1.1.0/2.0.0: Release on 15 Sep 2017  ---------
[v1.1.0] - for Ghost 0.11.x
  [*] dependencies updated  
          
[v2.0.0] - for Ghost 1.x
  [+] Ghost 1.x compatibilty
------------  VERSION - 1.1.0: Release on 16 Jun 2017  ------------
[+] Ghost 1.0 Beta 1 version support added in a separate theme file.
------------  VERSION - 1.0.1: Release on 19 Apr 2017  ------------
[*] Fixed list styling inside posts.
------------  VERSION - 1.0.0: Release on 24 Feb 2017  ------------
[+] - Initial release