ghost

Using post tags as meta keywords in a template on the ghost blogging platform

Meta keywords are for the most part, obsolete. However, there are a few search engines that still make some use of them (Yahoo and Ask come to mind).

For now, I've decided to use the tags that I add to posts as the keywords for these meta tags. Adding this feature to a template on the ghost blogging platform is pretty simple.

I added the following markup to the other meta tag markup in the default.hbs file.

{{#post}}<meta name="keywords" content="{{tags prefix="on " separator=", "}}">{{/post}}

By doing this, the landing page will not show the meta tag at all, but post pages will show something like this:

<meta name="keywords" content="apt-get, error, install, libcurl, command-line interface">

more ghost posts