Internal Tags

To create internal tags, follow the guide below.

Creating Internal Tags

  1. Log in to your publication at http://subdomain.ghost.io/ghost/signin
  2. Go to Settings > Tags
    ghost1.0-admin-menu-tags.png
  3. Click the New Tag button
    Screen_Shot_2017-07-27_at_10.26.49_AM.png
  4. To mark a tag as internal, use the hash "#" symbol before the tag name, i.e #myinternaltag 
    Screen_Shot_2017-07-27_at_10.29.09_AM.png
  5. The internal label will appear with the tag, displayed in the tag list, confirming the tag is an internal tag
    internal-tag-label.png 

Using Internal Tags

There are a few different ways you can work with internal tags within your theme. For example, you can use both the {{tags}} and {{#foreach tags}} helpers with internal tags. You can also use{{#has}} as well.

Below is an example of detecting an internal tag, using {{#foreach tags}}

{{#foreach tags visibility="internal"}}

For more information on visibility as it relates to the {{#foreach}} block with internal tags, view our theme documentation on {{#foreach}} here.

To detect internal tags using {{tags}} you would do something like this,

{{tags visibility="internal"}}

For more information on visibility as it relates to the {{tags}} helper, view our theme documentation on tags here.

The {{#has}} helper can also be used to return posts with a specific internal tag if need, for example {{#has tag="#myinternaltag"}}.