Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Getting Started with Ghost
  • Table Of Contents Toc
Getting Started with Ghost

Getting Started with Ghost

By : Bracey, Balderston, Andrew J Boutte
4.4 (5)
close
close
Getting Started with Ghost

Getting Started with Ghost

4.4 (5)
By: Bracey, Balderston, Andrew J Boutte

Overview of this book

If you are new to Ghost, this book is ideal for you. You might be completely new to content management systems or you might have experience with others such as WordPress. Some knowledge of web design basics such as HTML and CSS will be useful, but the book is designed so you can enter at the point relevant to you.
Table of Contents (8 chapters)
close
close

Creating your theme shell

The very first thing we're going to do is set up a basic theme shell, without any styling applied to it, that you can use as the foundation of this theme and any other you build after it.

The setup file and folder structure

We'll begin by getting the file and folder structure of your theme set up inside your local offline Ghost installation.

Go to content/themes in your local installation and create a new folder for your theme. As we mentioned in Chapter 3, Preparing for Theme Development, we'll name it LearningGhost.

Inside that folder, create five new files. The templates your Ghost theme will use are as follows:

  • default.hbs
  • index.hbs
  • post.hbs
  • tag.hbs
  • page.hbs

As you can see, the names of these template files correspond with the themeable areas talked about previously, with each one being responsible for the presentation of each of these areas.

Note that it's also possible to include an error.hbs file which allows you to create your own page for 400...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Getting Started with Ghost
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon