Posts are the primary entry-type within Ghost, and generally represent the majority of stored data.
</head>
or </body>
on any one particular URL where desired.
Here’s an example of a post in the default Ghost Theme:
+
button or typing /
- you can trigger an Unsplash integration to find and insert a royalty-free photo for your post.
Currently there are only a few simple cards available, but greater support for cards (as well as support for custom cards) is in active development.
About
or Contact
page.
page.hbs
default template, you can also create generic reusable custom templates like page-wide.hbs
- or page-specific templates based on a particular slug, like page-about.hbs
- so that you have fine-grained control over what markup is used to render your data.
Not much else to say about pages, let’s move right along.
News
will appear on example.com/tag/news/
, as well as in the automatically generated XML sitemap.
primary_tag
, used simply to refer to the very first tag which a post has. This is useful for when you want to return a singular, most-important tag rather than a full array of all tags assigned to a post.
#
character, otherwise known as hashtags, are internal tags within Ghost - which is to say that they aren’t rendered publicly. This can be particularly useful when you want to drive particular functionality based on a tag, but you don’t necessarily want to output the tag for readers to see.
Breaking news
- The primary tagRyan Reynolds
- A regular tagNew Releases
- A regular tag#feature
- An internal tagBreaking News
category and highlight them right at the top of the page with a Breaking News label beside the byline.
The Ryan Reynolds
and New Releases
tags generate archives so that readers can browse other stories in the same categories, as well as their own sitemaps.
The #feature
tag is used by the front-end or theme-layer as a conditional flag for activating specific formatting. In this instance the Deadpool PR team have supplied some marketing material including a giant wallpaper image which would make a great background, so the post is tagged with #feature
to push the post image to be full bleed and take over the whole page.
You can see this use-case in action on the main Ghost blog. Here’s a regular post, and here’s a #feature. The design of the post reacts to the tags.
#
) generate automatic tag archives within Ghost Handlebars Themes. Tag archives are automatically added to the Google XML Sitemap, and have their own pagination and RSS feeds.
Here’s an example of an tag archive in the default Ghost Theme:
Tag archives are only generated for tags which are assigned to published posts, any other tags are not publicly visible.