kelyvin / ghost-caffeine-theme

A minimalist, Material Design inspired Ghost Theme for optimal desktop and mobile experiences
https://caffeinecoding.com
MIT License
333 stars 97 forks source link

Remove our hacky implementation of "Tags" #75

Open kelyvin opened 5 years ago

kelyvin commented 5 years ago

As the title states, with the latest Ghost version, we no longer need our hacky management of tags. Leverage Ghost's setup instead.

BaankeyBihari commented 5 years ago

Can you elaborate more on this? Where do you want the tag implementation to change? post.hbs or tag.hbs

kelyvin commented 5 years ago

I was referring to the tags overlay that appears when you click on the search button on the top right-hand corner of the page.

The list of tags that appears is hard coded from the following code setting:

var tag_names = ['code', 'career'];

I want to remove this hard-coded array of tags, and instead pull the list of registered tags from ghost's content API.

This will be a step away from how this theme was implemented (which assumes no API is provided by Ghost), but it'll be for the better. This will serve as the starting point for all future API integrations.