A template for a tag gives every post or page with that tag its own design, such as a review layout with a rating at the top. A writer gives a post the design by adding the tag in Ghost. The template uses an internal tag, a Ghost tag whose name starts with #, such as #review. Visitors never see internal tags on your site.
Add the template
Open your project in Fantasma.
In the left sidebar, click + next to Templates. The Add Template menu opens.
Under Variants, the first group of the menu, click Post template. For pages, click Page template. A small dialog opens with two fields.
In the second field, Post by tag, enter the tag, such as #review. If you leave out the #, Fantasma adds it.
Click the arrow button at the end of the field. The template appears under Post in the Templates list, named after the tag, and opens on the canvas.
The new template starts as a copy of your current Post template, or of your Page template for a page. The right sidebar says "Used when this entry has internal tag #review in Ghost."
To change the tag later, enter the new one in Internal tag in the right sidebar.
Add the tag in Ghost
In Ghost Admin, open the post or page.
Open the post settings.
In the Tags field, enter #review, the same tag as in Fantasma.
Save or update the post in Ghost.
The post shows the new design once your theme with the template is on your Ghost site. Publish your theme to Ghost describes how to get it there.
When a post has two tags that each have a template, the one whose tag comes first in alphabetical order wins. #news wins over #review. The order of the tags on the post, and its primary tag, make no difference.
A template for a tag has no layout of its own. It uses the layout of Post, or of Page for a page template. The right sidebar shows that layout's name under Layout, such as Default. To change it, change the layout of Post or Page.
A project holds up to 16 templates for tags. A collection you add from Recommended collections, such as Projects, adds one for its own tag, and it counts toward the 16. Which template Ghost uses for each page explains the whole order.
A template for a tag gives every post or page with that tag its own design, such as a review layout with a rating at the top. A writer gives a post the design by adding the tag in Ghost. The template uses an internal tag, a Ghost tag whose name starts with
#, such as#review. Visitors never see internal tags on your site.Add the template
#review. If you leave out the#, Fantasma adds it.The new template starts as a copy of your current Post template, or of your Page template for a page. The right sidebar says "Used when this entry has internal tag #review in Ghost."
To change the tag later, enter the new one in Internal tag in the right sidebar.
Add the tag in Ghost
#review, the same tag as in Fantasma.The post shows the new design once your theme with the template is on your Ghost site. Publish your theme to Ghost describes how to get it there.
When a post has more than one match
#newswins over#review. The order of the tags on the post, and its primary tag, make no difference.A template for a tag has no layout of its own. It uses the layout of Post, or of Page for a page template. The right sidebar shows that layout's name under Layout, such as Default. To change it, change the layout of Post or Page.
A project holds up to 16 templates for tags. A collection you add from Recommended collections, such as Projects, adds one for its own tag, and it counts toward the 16. Which template Ghost uses for each page explains the whole order.