ghost

Adding Open Graph metadata to a theme on the Ghost blogging platform

I wanted to add some basic Open Graph tags to my current Ghost theme, which is a modified version of Casper. This was pretty simple since metadata is already being pulled through the handlebars templating engine.

All I had to do was add the following lines below the existing meta tags in the default.hbs file:

<meta property="og:title" content="{{meta_title}}" />
<meta property="og:description" content="{{meta_description}}">
<meta property="og:site_name" content="Cody Bonney" />

more ghost posts